ElasticSearch第四篇:启动和遇到的坑


关闭原来的服务:ps -ef | grep 'pwd'

启动方式:
启动es:elasticsearch
访问:http://127.0.0.1:9200/

启动kibana:kibana
http://127.0.0.1:5601/app/kibana#/dev_tools/console?_g=()

启动elasticsearch-head:npm run start
进入/Users/cici/workspace/es/elasticsearch-head 文件下
访问:http://127.0.0.1:9100/


问题:
访问一:http://127.0.0.1:9200/
出现的是最新的版本:

{
name: "wJ_4yyW",
cluster_name: "elasticsearch_cici",
cluster_uuid: "7-avDstMQYKSlVve05Wcyw",
version: {
number: "6.8.2",
build_flavor: "oss",
build_type: "tar",
build_hash: "b506955",
build_date: "2019-07-24T15:24:41.545295Z",
build_snapshot: false,
lucene_version: "7.7.0",
minimum_wire_compatibility_version: "5.6.0",
minimum_index_compatibility_version: "5.0.0"
},
tagline: "You Know, for Search"
}

插件显示结果:


ElasticSearch第四篇:启动和遇到的坑_第1张图片
image.png

访问二:http://localhost:9200/
出现的是

{
name: "Jane Foster",
cluster_name: "elasticsearch",
cluster_uuid: "G_EwB3J9RraU_w0ebozjUw",
version: {
number: "2.4.5",
build_hash: "c849dd13904f53e63e88efc33b2ceeda0b6a1276",
build_timestamp: "2017-04-24T16:18:17Z",
build_snapshot: false,
lucene_version: "5.5.4"
},
tagline: "You Know, for Search"
}

并且用http://localhost:9100/访问,集群健康值: 未连接

说明:此时的127.0.0.1 和 localhost 不是一个es服务;
查看本地docker镜像中发现,之前已经启动了2.4.5的服务

ElasticSearch第四篇:启动和遇到的坑_第2张图片
image.png

你可能感兴趣的:(ElasticSearch第四篇:启动和遇到的坑)