x-pack[暂不考虑]

配置用户名、密码

配置文件

# 开启xpack认证
xpack.security.enabled: true
xpack.license.self_generated.type: basic
xpack.security.transport.ssl.enabled: true
# 开启跨域
http.cors.enabled: true 
http.cors.allow-origin: "*"
http.cors.allow-headers: Authorization

命令行
./elasticsearch-setup-passwords interactive

kibana配置
elasticsearch.username: "elastic"
elasticsearch.password: "passwd"

你可能感兴趣的:(x-pack[暂不考虑])