Windows下的Elasticsearch-head安裝
參考:
https://gitcode.net/mirrors/mobz/elasticsearch-head
需要用到 npm 命令,這里可以提前下載安裝下
Node.js
即可自動(dòng)安裝npm
;
Node.js 下載安裝地址:https://nodejs.org/en/download
# 進(jìn)到本地某一個(gè)目錄下
git clone https://gitcode.net/mirrors/mobz/elasticsearch-head.git
# 找到安裝并進(jìn)入 elasticsearch-head目錄,選中當(dāng)前目錄,cmd 回車(chē)進(jìn)入,依次執(zhí)行以下命令
npm install
npm run start
- npm install 可能出現(xiàn)的報(bào)錯(cuò):
npm ERR! code 1
npm ERR! path D:\es_head\elasticsearch-head\node_modules\phantomjs-prebuilt
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node install.js
npm ERR! PhantomJS not found on PATH
npm ERR! Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-windows.zip
報(bào)錯(cuò)日志提示文件如無(wú)法下載,兩種方式處理:
(出自:https://www.cnblogs.com/wlgwilianm123/p/14167621.html)
- 網(wǎng)速允許直接下載
npm install -g phantomjs
- 先進(jìn)行淘寶鏡像安裝,再用cnpm進(jìn)行下載
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install -g phantomjs
安裝完之后,回過(guò)頭去重新執(zhí)行兩條npm
命令即可
執(zhí)行完成之后打開(kāi)瀏覽器訪問(wèn)端口即可
http://localhost:9100/
PS:如果有寫(xiě)錯(cuò)或者寫(xiě)的不好的地方,歡迎各位大佬在評(píng)論區(qū)留下寶貴的意見(jiàn)或者建議,敬上!如果這篇博客對(duì)您有幫助,希望您可以順手幫我點(diǎn)個(gè)贊!不勝感謝!
文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-732784.html
原創(chuàng)作者:wsjslient文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-732784.html |
到了這里,關(guān)于Windows下的Elasticsearch-head安裝的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!