elasticsearch 6.3.0 启用x-pack

elasticsearch 6.3.0已经整合了x-pack因此只要启用就可了,下面是启用步骤

启用trial license(30天试用)

curl -H "Content-Type:application/json" -XPOST  http://localhost:9200/_xpack/license/start_trial?acknowledge=true

配置elasitcsearch.yml

xpack.security.enabled: true

启动elasticsearch

./bin/elasticsearch

设置密码

li@li-ok:~/elasticsearch-6.3.0$ ./bin/elasticsearch-setup-passwords interactive
Picked up _JAVA_OPTIONS:   -Dawt.useSystemAAFontSettings=gasp
Picked up _JAVA_OPTIONS:   -Dawt.useSystemAAFontSettings=gasp
Initiating the setup of passwords for reserved users elastic,kibana,logstash_system,beats_system.
You will be prompted to enter passwords as the process progresses.
Please confirm that you would like to continue [y/N]y


Enter password for [elastic]: 
Reenter password for [elastic]: 
Enter password for [kibana]: 
Reenter password for [kibana]: 
Enter password for [logstash_system]: 
Reenter password for [logstash_system]: 
Enter password for [beats_system]: 
Reenter password for [beats_system]:

在kibana中配置elasticsearch的用户信息

在kibana.yml中配置,如果没有安装kibana可以忽略

elasticsearch.username: "elastic"
elasticsearch.password: 之前设置的elastic的密码

重新启动elasticsearch、kibana

启动完成之后访问kibana


elasticsearch 6.3.0 启用x-pack_第1张图片
深度截图_选择区域_20180902130655.png

你可能感兴趣的:(elasticsearch 6.3.0 启用x-pack)