elasticsearch-head的安装和使用

(一)

安装nodeJS, 下载nodejs安装包,直接下一步就可以,运行node -v 和npm -v有如下结果,表示安装成功。

(二)

安装git(安装过程略过),

1.git clone git://github.com/mobz/elasticsearch-head.git   //git下载相关资源

2.cd elasticsearch-head //进入相关的目录

3.npm install

4.npm run start

然后耐心等待,就可以了。

然后你就会看到

安装成功了

 然后加上你安装的es中找到elasticsearch.yml,添加这两句

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

注意:冒号后面有个空格

然后输入你安装的es的地址和端口,一般为ip:9200,就可以连接了

posted @ 2018-12-11 16:43  护花使者  Views(254)  Comments(0Edit  收藏  举报