解决Elasticsearch-head插件链接不上服务

安装插件head

git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head
npm install
npm start

解决方案

vim elasticsearch.yml
修改elasticsearch.yml文件
# 增加如下字段
http.cors.enabled: true
http.cors.allow-origin: "*"
发布了48 篇原创文章 · 获赞 7 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_36168479/article/details/89875853