安装head插件:需要有git环境,nodejs环境
head插件下载 安装步骤参考 : https://github.com/mobz/elasticsearch-head
git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head
npm install
npm run start
运行npm install 会报错:
npm ERR! path /usr/local/elasticsearch-head/node_modules/phantomjs-prebuilt
这是因为系统缺少bzip2 : yum -y install bzip2.x86_64
安装完成,再运行npm install就解决了