Elasticsearch Head安装

来源:互联网 发布:java调用微信接口 编辑:程序博客网 时间:2024/06/05 19:44

1 环境

基于上文中所搭建的Elasticsearch集群,在10.10.28.181上安装head插件

node-v4.6.1-linux-x64.tar.gz

2 准备

tar -zxf node-v4.6.1-linux-x64.tar.gz

sudo vim /etc/profile

export PATH=/home/wangzi/wz/node-v4.6.1-linux-x64/bin:$PATH

source /etc/profile

此时执行node -v可以看到node的版本

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

3 安装

cd elasticsearch-head

npm install

vim Gruntfile.js

connect: {

  server:{

    options:{

      hostname: ’0.0.0.0’,

      port: 9100,

      base:'.',

      keepalive:true

    }

  }

}

4 运行

npm start

打开http://10.10.28.181:9100即可看到监控界面

原创粉丝点击