elasticsearch5 版本集群管理工具head安装

1、下载head插件源码

https://github.com/mobz/elasticsearch-head


由于elasticsearch5.0版本变化较大,目前elasticsearch5.0 暂时不支持直接安装,但是head作者提供了另一种安装方法。



2、下载nodejs

nodejs官网下载地址https://nodejs.org/dist/

 

 

3、配置node环境变量

xz –d node-v6.9.2-linux-x64.tar.xz
tar –xvf node-v6.9.2-linux-x64.tar
mv node-v6.9.2-linux-x64 /data/PRG/node

 

vim /etc/profile
export NODE_HOME=/data/PRG/node
export PATH=$PATH:$NODE_HOME/bin
source /etc/profile

 

# node –v
v6.9.2
# npm –v
3.10.9

 

 

4、安装grunt

如果生产环境无法联网在线安装grunt,可以找一台能联网的主机配置好node,安装好grunt后将elasticsearch-head目录下的node_models打包上传

cd elasticsearch-head
npm install -g grunt --registry=https://registry.npm.taobao.org

 

修改head目录下的Gruntfile.js配置,head默认监听127.0.0.1

# vim Gruntfile.js

hostname: '0.0.0.0',

QQ图片20161214113021

5、elasticsearch配置允许跨域访问

修改elasticsearch配置文件elasticsearch.yml

http.cors.enabled: true
http.cors.allow-origin: "*"

 

6、重启elasticsearch,并启动node

cd elasticsearch-head
node_modules/grunt/bin/grunt server

 

image

 

访问http://192.168.62.200:9100

image


安装资源

百度云盘http://pan.baidu.com/s/1skT4zCx


  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值