Elasticsearch6.X中head连接不上es

在es6.x中连接不到head。

需要在配置文件conf/elasticsearch.yml中添加:

http.cors.enabled: true
http.cors.allow-origin: "*"

修改完,重启es和head,则可以连接

其他问题请参考:https://github.com/mobz/elasticsearch-head

猜你喜欢

转载自blog.csdn.net/xiabaosen/article/details/83272891