Elasticsearch 安装x-pack之后,无法连接head问题

  

  在elasticsearch的配置文件,添加如下配置

# xpack use config
cluster.initial_master_nodes: ["node-1"]
http.cors.allow-headers: Authorization,Content-Type
xpack.security.enabled: true
xpack.license.self_generated.type: basic
xpack.security.transport.ssl.enabled: true

  在访问head时,带上用户名和密码访问 http://127.0.0.1:9100/?auth_user=elastic&auth_password=123456

posted @ 2021-02-24 14:05  低调码农哥!  阅读(378)  评论(0编辑  收藏  举报