安装x-pack后,无法设置密码和登录

  1. 已经安装了 elasticsearch ,版本 6.2.4,原来启动正常
  2. 已经安装了 kibana,版本 6.2.4 ,原来启动正常
  3. 按照官方方法安装了 x-pack 版本,6.2.4
  4. elasticsearch 和 kibana 启动都正常
但是由于安装了 x-pack 插件,导致登录需要验证,使用网上说的默认账户密码,elastic,changeme 无法登录 elasticsearch

使用x-pack的设置密码工具进行设置密码,报如下错误

D:\elasticsearch\elasticsearch-master-6.2.4\bin\x-pack>setup-passwords.bat interactive
Initiating the setup of passwords for reserved users elastic,kibana,logstash_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]:
Passwords do not match.
Try again.
Enter password for [logstash_system]:
Reenter password for [logstash_system]:

Connection failure to: http://127.0.0.1:9200/_xpack/security/user/kibana/_password?pretty failed: Read timed out

ERROR: Failed to set password for user [kibana].

这个问题怎么解决呢,之前通过 auto 的方法设置密码也不行,通过手动设置密码的方式也不行。
均报这个错误!

阅读 12k
2 个回答

自己来回答一下吧

是因为在设置密码的时候启动了Kibana的原因, 而安装了x-pack没有设置密码是无法启动kibana的,认证不通过

正确的顺序:

  1. ES安装x-pack
  2. ES启动
  3. 设置密码
  4. Kibana 安装 x-pack
  5. 修改Kibana的配置文件
  6. 启动Kibana
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进