- 已经安装了 elasticsearch ,版本 6.2.4,原来启动正常
- 已经安装了 kibana,版本 6.2.4 ,原来启动正常
- 按照官方方法安装了 x-pack 版本,6.2.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 的方法设置密码也不行,通过手动设置密码的方式也不行。
均报这个错误!
自己来回答一下吧
是因为在设置密码的时候启动了Kibana的原因, 而安装了x-pack没有设置密码是无法启动kibana的,认证不通过
正确的顺序: