ELasticsearch忘记密码后重置超级用户密码

2022-11-10,,,

创建一个临时的超级用户TestSuper:

[root@cfeea elasticsearch]# ./bin/elasticsearch-users useradd TestSuper -r superuser
Enter new password:
Retype new password:

用这个用户去修改elastic的密码:

curl -XPUT -u TestSuper:123456 http://localhost:9200/_xpack/security/user/elastic/_password -H "Content-Type: application/json" -d '
{
"password": "q5f2qNfUJQyvZPIz57MZ"
}'

ELasticsearch忘记密码重置超级用户密码的相关教程结束。

《ELasticsearch忘记密码后重置超级用户密码.doc》

下载本文的Word格式文档,以方便收藏与打印。