(1)进入ElasticSearch安装目录,在config/elasticsearch.yml文件添加以下配置开启安全校验:
xpack.security.enabled: true
(2)进入ElasticSearch安装目录,执行以下命令设置elastic用户的密码:
./bin/elasticsearch-setup-passwords interactive ###自己指定密码
或
./bin/elasticsearch-setup-passwords auto ###自动生成密码
(3)其他安全配置可参考https://www.elastic.co/guide/en/elasticsearch/reference/current/secure-cluster.html

本文档介绍了如何在Elasticsearch中启用安全验证,包括在elasticsearch.yml配置文件中开启安全检查,使用命令行工具设置elastic用户密码,并提供了官方安全配置的详细参考链接,确保集群的安全运行。
1354

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



