一、安装Node.js环境
# cd /usr/local
# wget https://nodejs.org/dist/v8.11.4/node-v8.11.4-linux-x64.tar.xz
# yum install -y xz
# xz -d node-v8.11.4-linux-x64.tar.xz
# tar -xf node-v8.11.4-linux-x64.tar
# cd /usr/local/bin //全局使用 npm 和 node,需要做相关软链
# ln -s /usr/local/node-v8.11.4-linux-x64/bin/node
# ln -s /usr/local/node-v8.11.4-linux-x64/bin/npm
# node -v
# npm -v
//使用淘宝镜像
# npm config get registry // https://registry.npmjs.org/
# npm config set registry https://registry.npm.taobao.org
二、下载插件包
去https://github.com/mobz/elasticsearch-head下载代码上传到服务器上
# cd elasticsearch-head
# npm install -g grunt -cli
# npm install //有报错忽略
# npm install grunt --save //有报错

本文介绍了如何在ElasticSearch5.x中安装Elasticsearch-head插件,包括安装Node.js环境,从GitHub下载并上传插件包,修改Elasticsearch配置,以及重启服务使配置生效和启动插件。
订阅专栏 解锁全文
54万+

被折叠的 条评论
为什么被折叠?



