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

 

 

 

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