elasticsearch 安装 x-pack 后重新生成密码的方法

elasticsearch 安装 x-pack 后重新生成密码的方法

环境

服务器:centos6
操作系统:win7
工具:CRT
elasticsearch:6.0.0

命令

[yutao@master01 elasticsearch-6.0.0]$ bin/x-pack/setup-passwords autoInitiating 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]yChanged password for user kibanaPASSWORD kibana = WjFJ6G$lEH71W7K1+vclChanged password for user logstash_systemPASSWORD logstash_system = TS8ZR41smxm9o?F6gbBBChanged password for user elasticPASSWORD elastic = rc~ENBxy?18hOQ^R9OUJ[yutao@master01 elasticsearch-6.0.0]$

也就是:

bin/x-pack/setup-passwords auto

如果想自己来指定密码的话,执行:

bin/x-pack/setup-passwords interactive

会有交互,让你输入密码;

Setting Built-in User Passwords

Getting Started with Security

推荐阅读