上一篇已经部署好集群了,现在安装elasticsearch-head 插件
1.node.js 安装
curl --silent --location https://rpm.nodesource.com/setup_10.x | bash -
yum install -y nodejs
2.安装elasticsearch-head
yum install -y git bzip2
git clone https://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head/
npm install -g grunt-cli
npm install
3.修改配置文件
vim Gruntfile.js
进行后搜索9100,在其上面添加一行:
hostname:‘10.45.154.236’, 即是此安装插件的IP
如果此机器防火墙有开,即记得开放9100端口且限IP访问
vim _site/app.js
进行后搜索9200
把http://localhost:9200修改成http://10.45.154.236:9200
打开浏览器输入http://10.45.154.236:9100
当然能科学上网的小伙可以安装一下谷歌的插件,最新版本为0.1.5,本来打算上传了资源,但是管理都没审核通过。
https://chrome.google.com/webstore/detail/elasticsearch-head/ffmkiejjmecolpfloofpjologoblkegm/
/(ㄒoㄒ)/~~