爬不动的毛毛虫IT@程序员猿媛程序员

elasticsearch-head 集群健康值: 未连接

2019-04-06  本文已影响2人  一只小菠菜

elasticsearch版本:6.7.1

  打开路径 "..\elasticsearch\config\ " 下的 elasticsearch.yml 文件,在文件末尾添加如下代码:

http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers: "X-Requested-With, Content-Type, Content-Length, X-User"

  访问9100端口,查看连接情况。


  集群健康如图所示即为正常。如果上述方案未能解决你的问题,请移步至:https://blog.csdn.net/ymd8005/article/details/70676798
上一篇下一篇

猜你喜欢

热点阅读