Elasticsearch-5.4.0安装head插件

下载node环境包

wget https://npm.taobao.org/mirrors/node/latest-v4.x/node-v4.5.0-linux-x64.tar.gz

配置下环境变量,编辑/etc/profile添加

export NODE_HOME=/usr/local/node-v4.5.0-linux-x64
export PATH= P A T H : PATH: PATH:NODE_HOME/bin/
export NODE_PATH=$NODE_HOME/lib/node_modules
source /etc/profile

安装npm

npm install -g cnpm --registry=https://registry.npm.taobao.org
npm install -g grunt
npm install -g grunt-cli --registry=https://registry.npm.taobao.org --no-proxy

下载head环境包

wget https://github.com/mobz/elasticsearch-head/archive/master.zip

下载依赖

unzip master.zip
cd elasticsearch-head-master
npm install

修改head端口

sed -i ‘s/port: 9100/port: 11111/g’ Gruntfile.js

修改elasticsearch.yml,并重启集群

http.cors.enabled: true
http.cors.allow-origin: “*”

启动

grunt server

登录

ip:11111
连接按钮前输入要修改为es集群某个节点的ip和相应的http端口

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值