【发布时间】:2018-02-11 02:53:04
【问题描述】:
如果我有一个 elasticsearch.yml 配置文件,是否可以更改默认密码?我应该在我的 .yml 文件中添加什么来做到这一点?现在是changeme。
我正在使用Elasticsearch 5.6.4
我的.yml 文件
cluster.name: "docker-cluster"
network.host: "0.0.0.0"
http.cors.enabled : true
http.cors.allow-origin : "*"
http.cors.allow-methods : "OPTIONS, HEAD, GET, POST, PUT, DELETE"
http.cors.allow-headers : "X-Requested-With, X-Auth-Token, Content-Type, Content-Length, Authorization"
【问题讨论】:
-
哪个版本?在 6.x 中不再有默认密码。
-
5.6.4 - 对于 6.x 是否没有基本身份验证?
-
没有默认密码了。您需要在 6.x 中从 CLI 运行 setup-passwords
标签: elasticsearch elasticsearch-x-pack