es和kibana密码配置

1,修改es的配置文件:elasticsearch.yml,添加如下配置并重启

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

docker restart es

2,进入容器设置各个用户密码

docker exec -it es /bin/bash 
./elasticsearch-setup-passwords interactive

3,添加kibana配置并重启

elasticsearch.username: "elastic" 
elasticsearch.password: "123456"

docker restart kibana

4, 登录

用户名:elastic

密码:123456

你可能感兴趣的:(elasticsearch,elasticsearch,kibana)