1. 程式人生 > >elasticsearch 安裝 x-pack 後重新生成密碼的方法

elasticsearch 安裝 x-pack 後重新生成密碼的方法

環境

伺服器:centos6
作業系統:win7
工具:CRT
elasticsearch:6.0.0

命令

[[email protected] elasticsearch-6.0.0]$ bin/x-pack/setup-passwords auto
Initiating the setup of reserved user elastic,kibana,logstash_system passwords.
The passwords will be randomly generated and printed to the console.
Please confirm that
you would like to continue [y/N]y Changed password for user kibana PASSWORD kibana = WjFJ6G$lEH71W7K1+vcl Changed password for user logstash_system PASSWORD logstash_system = TS8ZR41smxm9o?F6gbBB Changed password for user elastic PASSWORD elastic = rc~ENBxy?18hOQ^R9OUJ [[email protected] elasticsearch-6.0
.0]$

也就是:

bin/x-pack/setup-passwords auto

如果想自己來指定密碼的話,執行:

bin/x-pack/setup-passwords interactive

會有互動,讓你輸入密碼;