es版本号:7.4.0
参考: http://www.likecs.com/show-99086.html
-
设置密码
1.需要在配置文件中开启x-pack验证, 修改config(一般是在/usr/share/elasticsearch)目录下面的elasticsearch.yml文件,在里面添加如下内容,并重启.
xpack.security.enabled: true
xpack.license.self_generated.type: basic
xpack.security.transport.ssl.enabled: true
2,执行设置用户名和密码的命令,这里需要为4个用户分别设置密码,elastic, kibana, logstash_system,beats_system
bin/elasticsearch-setup-passwords interactive
Initiating the setup of passwords for reserved users elastic,kibana,logstash_system,beats_system.
You will be prompted to enter passwords as the process progresses.
Please confirm that you would like to continue [y/N]y
Enter passw

本文详细介绍了如何在Elasticsearch 7.4.0版本中设置和管理用户密码,包括启用x-pack验证、为预设用户如elastic、kibana等设置密码,以及通过命令行修改和重置密码的方法。

5047

被折叠的 条评论
为什么被折叠?



