es 安裝head外掛程式的問題

2021-08-19 03:53:59 字數 1637 閱讀 3971

/usr/local/node-v9.9.0/bin/npm install 執行該命令

npm warn deprecated [email protected]: coffeescript on npm has moved to "coffeescript" (no hyphen)

npm warn registry unexpected warning for miscellaneous warning econnrefused: request to failed, reason: connect econnrefused 151.101.228.162:443

npm warn registry using stale package data from due to a request error during revalidation.

以上是安裝head外掛程式的報錯。 node 版本 

v9.9.0

採用網上的解決辦法

/usr/local/node-v9.9.0/bin/npm install -g cnpm --registry=

/usr/local/node-v9.9.0/bin/npm start 還是報錯

> [email protected] start /usr/local/elasticsearch-head-master

> grunt server

sh: grunt: 未找到命令

npm err! file sh

npm err! code elifecycle

npm err! errno enoent

npm err! syscall spawn

npm err! [email protected] start: `grunt server`

npm err! spawn enoent

npm err! 

npm err! failed at the [email protected] start script.

npm err! this is probably not a problem with npm. there is likely additional logging output above.

npm warn local package.json exists, but node_modules missing, did you mean to install?

npm err! a complete log of this run can be found in:

npm err!     /root/.npm/_logs/2018-04-21t08_42_24_584z-debug.log

/usr/local/node-v9.9.0/bin/npm install -g grunt-cli 

執行安裝

npm run start 還是報錯

/usr/local/node-v9.9.0/bin/npm config set registry 設定**的 

pacakge mirror

/usr/local/node-v9.9.0/bin/npm install

此時再執行/usr/local/node-v9.9.0/bin/npm run start

一切ok

ES及Head外掛程式安裝

2 啟動 雙擊bin目錄下雙擊elasticsearch.bat即可,輸入位址在瀏覽器中輸入 出現一下介面,表示啟動成功。3 安裝elasticsearch管理外掛程式 安裝head外掛程式需要nodejs和grunt 1 nodejs安裝 官網選擇64位的window的msi安裝版本 安裝完成後,...

ES6安裝head外掛程式

2.解壓安裝包 unzip master.zip 之後,將會出現乙個elasticsearch head master資料夾 tar zxvf node v4.4.7 linux x64.tar.gz export node home root node v4.4.7 linux x64 此處為解壓...

es集群 head外掛程式部署

一 單節點部署5 預設啟動後只允許本機訪問,可修改config elasticsearch.yml配置放開訪問許可權 開啟network.host 0.0.0.0的注釋 注 network.host 與0.0.0.0之間存在空格 6 修改jvm.options配置,如果network.host 對應...