ES head插件安装方法

1、安装node.js:setup_6.x   (5-11)版本自行修改

curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -

2、yum -y install nodejs

3、node.js的管理:

查看版本:node -v

npm install -g n  xxx   

xxx(latest最新、stable稳定、rm删除、list查看)

4、npm加速全局安装cnpm

npm install -g cnpm --registry=https://registry.npm.taobao.org

4、下载head插件:

git clone git://github.com/mobz/elasticsearch-head.git

5、进入到head

  • cd elasticsearch-head
  • 修改Gruntfile.js  ---增加 hostname: '*'

安装插件:

npm install -g grunt

npm install -g grunt-cli 

启动:

npm install

npm run start

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章