elasticSearch安装了x-pack之后无法连接head问题

描述:
启动了es之后可以访问:node1:9200,也可以访问node3:9100,但是head的可视化页面无法连接到elasticSearch集群.
问题解决:
方案一:
在elasticsearch.yml里加这么一行
xpack.security.enabled: false
方案二:
在elasticsearch.yml里加这么两行
http.cors.enabled: true
http.cors.allow-origin: “*”
http.cors.allow-headers: Authorization,Content-Type
然后在每次使用head插件的时候,按照如下的格式输入:
http://node1:9100/?auth_user=elastic&auth_password=changeme”

猜你喜欢

转载自blog.csdn.net/qq_33286695/article/details/85248547