elasticsearch-head 安装

1,安装node.js npm(root用户)

yum -y install node.js npm

2,安装git

yum -y install git

3,下载head

git@github.com:mobz/elasticsearch-head.git

4,安装:

5,配置head插件:

修改Gruntfile.js配置,添加hostname:"*"

 

6,修改_site\app.js 中

 

 7,es增加跨域的配置:

编辑es安装config文件夹下的elasticsearch.yml

http.cors.enabled: true

http.cors.allow-origin: "*"

posted @ 2020-01-05 14:42  Baby~She  阅读(78)  评论(0)    收藏  举报