项目地址:https://github.com/mobz/elasticsearch-head
# yum -y install epel-release
# yum -y install git nodejs npm
# git clone git://github.com/mobz/elasticsearch-head.git
npm
环境依赖# cd elasticsearch-head/
# npm install
elasticsearch-head
访问和管理ELS Cluster
,在各ELS Cluster节点
执行如下授权操作
vim /etc/elasticsearch/elasticsearch.yml
http.cors.enabled: true
http.cors.allow-origin: "*"
ELS Cluster
systemctl restart elasticsearch.service
elasticsearch-head
grunt
监听在9100/tcp
上# npm run start
# ss -tnlp | grep 9100
LISTEN 0 128 *:9100 *:* users:(("grunt",pid=3763,fd=12))
使用浏览器访问:http://localhost:9100 #注意,我们在浏览器中访问时,需输入http://IP:9100