elasticsearch 5.5.1 head插件安裝

5.5.1版本與以前版本有很大不一樣。node

1. 下載插件git

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

2. 編譯npm

cd elasticsearch-head跨域

npm installcors

npm install grunt --saveelasticsearch

3. 跨域問題解決:grunt

在node1 (master) 增長配置:插件

http.cors.enabled: true
http.cors.allow-origin: /http?:\/\/10.112.29.137(:[0-9]+)?/server

 直接訪問:http://10.112.29.137:9100

 坑:啓動時報錯:>> Local Npm module "grunt-contrib-clean" not found. Is it installed?>> Local Npm module "grunt-contrib-concat" not found. Is it installed?>> Local Npm module "grunt-contrib-watch" not found. Is it installed?>> Local Npm module "grunt-contrib-connect" not found. Is it installed?>> Local Npm module "grunt-contrib-copy" not found. Is it installed?>> Local Npm module "grunt-contrib-jasmine" not found. Is it installed?Warning: Task "connect:server" not found. Use --force to continue.Aborted due to warnings.安裝npm install grunt-contrib-clean --registry=https://registry.npm.taobao.orgnpm install grunt-contrib-concat --registry=https://registry.npm.taobao.orgnpm install grunt-contrib-watch --registry=https://registry.npm.taobao.orgnpm install grunt-contrib-connect --registry=https://registry.npm.taobao.orgnpm install grunt-contrib-copy --registry=https://registry.npm.taobao.orgnpm install grunt-contrib-jasmine --registry=https://registry.npm.taobao.org

相關文章
相關標籤/搜索