Elasticsearch、Elasticsearch-head、Kibana 安全设置账号密码验证登陆
X-Pack 是 Elastic Stack 的一个扩展,提供安全性、警报、监视、报告、机器学习等功能。 安装 Elasticsearch 7.x 时,会默认安装X-Pack,无需单独安装,且基础级安全永久免费。
操作步骤:
- 在 elasticsearch 的 config 目录下的 elasticsearch.yml 的底部添加下面配置
http.cors.allow-headers: Authorization,X-Requested-With,Content-Length,Content-Type
xpack.security.enabled: true
xpack.security.audit.enabled: true
xpack.license.self_generated.type: basic
xpack.security.transport.ssl.enabled: true

- 使用 非root 用户 启动 el

本文介绍如何在Elasticsearch中设置安全措施,包括账号密码验证、使用X-Pack增强安全功能,以及在Kibana中配置安全登录。同时,提供了SpringBoot中Elasticsearch的配置示例。
1807

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



