默认账号密码:
user: elastic password: changeme
- 1.以管理员方式运行:elasticsearch.bat
- 2.在elasticsearch-8.3.0\bin目录打开cmd,例如需要修改用户kibana的密码则输入:elasticsearch-reset-password --username kibana -i
- 3.输入新密码,回车后二次确认。
D:\sitemodel\elasticsearch-8.3.0\bin>elasticsearch-reset-password --username kib
ana -i
warning: ignoring JAVA_HOME="D:\sitemodel\elasticsearch-8.3.0\jdk" ; using
This tool will reset the password of the [kibana] user.
You will be prompted to enter the password.
Please confirm that you would like to continue [y/N]y
Enter password for [kibana]:
Re-enter password for [kibana]:
Password for the [kibana] user successfully reset.
D:\sitemodel\elasticsearch-8.3.0\bin>elasticsearch-reset-password --username ela
stic -i
warning: ignoring JAVA_HOME="D:\sitemodel\elasticsearch-8.3.0\jdk" ; using
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.