ElasticSearch7.4 elasticsearch-head插件安装

上一篇已经部署好集群了,现在安装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ㄒ)/~~
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/goodsirlee/article/details/102599418