当elasticsearch 设置用户名密码认证:
[elk@goya config]$ elasticsearch-setup-passwords interactive
Failed to authenticate user 'elastic' against https://192.168.88.3:9200/_security/_authenticate?pretty
Possible causes include:
- The password for the 'elastic' user has already been changed on this cluster
- Your elasticsearch node is running against a different keystore
This tool used the keystore at /usr/local/elasticsearch/config/elasticsearch.keystore
You can use the elasticsearch-reset-password
CLI tool to reset the password of the 'elastic' user
ERROR: Failed to verify bootstrap password
[elk@goya config]$ elasticsearch-reset-password -u elastic
This tool will reset the password of the [elastic] user to an autogenerated value.
The password will be printed in the console.
Please confirm that you would like to continue [y/N]y
Password for the [elastic] user successfully reset.
New value: Kzp6I0Jvo8cS9EBRWe24(系统自动生成的密码)
说明:如果想设置自己想用的密码需要加参数-i
[root@goya1 certs]# elasticsearch-reset-password -u elastic -i
warning: ignoring JAVA_HOME=/app/elasticsearch/jdk; using bundled JDK
This tool will reset the password of the [elastic] user.
You will be prompted to enter the password.
Please confirm that you would like to continue [y/N]y
Enter password for [elastic]:
Re-enter password for [elastic]:
Password for the [elastic] user successfully reset.
版权归原作者 yangkei 所有, 如有侵权,请联系我们删除。