部署步骤:
1.安装依赖node 类似jdk
2.解压head包
3.安装grunt(在head目录下)
npm config set registry https://registry.npmmirror.com
npm install -g grunt-cli
4.修改head源码
vim /usr/local/elasticsearch-head-master/Gruntfile.js +95
下一行插入hostname: '*'
vim /usr/local/elasticsearch-head-master/_site/app.js +4359
localhost修改为集群ip
5.下载必要的文件
wget https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
yum -y install bzip2
tar -jxf phantomjs-2.1.1-linux-x86_64.tar.bz2 -C /tmp/
6.运行head
cd /usr/local/elasticsearch-head-master/
npm config set registry https://registry.npmmirror.com
npm install
nohup grunt server &