安装
注意:elasticsearch需要非ROOT用户启动
https://es.xiaoleilu.com/010_Intro/10_Installing_ES.html
下载elasticsearch
https://www.elastic.co/downloads/elasticsearch
下载kibana
https://www.elastic.co/downloads/kibana
安装X-Pack
https://www.elastic.co/downloads/x-pack
执行
bin/x-pack/setup-passwords auto
记录生成的密码:
Changed password for user kibana
PASSWORD kibana = inc32lf2XYcHGNB4cBwe
Changed password for user logstash_system
PASSWORD logstash_system = qhC4gHM19yCZxRxV4hZB
Changed password for user elastic
PASSWORD elastic = V33XO5O6KtodeYZqGUN5
测试
访问:http://localhost:9200/?pretty,需要填上面的用户名/密码
返回:
{
"name" : "csYi3Om",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "Ryy0C4leSremYwSVtj1BAQ",
"version" : {
"number" : "6.2.3",
"build_hash" : "c59ff00",
"build_date" : "2018-03-13T10:06:29.741383Z",
"build_snapshot" : false,
"lucene_version" : "7.2.1",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}