給elasticsearch設置密碼

1.在elasticsearch.yml中添加如下配置:

xpack.security.enabled: true
xpack.license.self_generated.type: basic
xpack.security.transprt.ssl.enabled: true

修改完配置之後重啓elasticsearch。

2.執行如下命令:

bin/elasticsearch-setup-passwords interactive

依次設置密碼。

3.在kibana.yml中添加配置:

elasticsearch.username: "elastic"
elasticsearch.password: "xxxx"

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章