一.Elasticsearch-head安装
1.下载安装包
yum install git -y
git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head
2. 安装node
wget https://nodejs.org/dist/v10.10.0/node-v10.10.0-linux-x64.tar.gz
tar -xf node-v10.10.0-linux-x64.tar.gz
ln -s /data/node-v10.10.0-linux-x64/bin/npm /usr/local/bin/npm
ln -s /data/node-v10.10.0-linux-x64/bin/node /usr/local/bin/node
3.启动
cd elasticsearch-head
npm install
npm run start &
4.配置es文件/etc/elasticsearch/elasticsearch.yml
http.cors.enabled: true http.cors.allow-origin: "*"
5.重启es服务
systemctl restart elasticsearch
6.登录http://IP:9100
原文:https://www.cnblogs.com/bankuangren/p/14785159.html