当前位置:首页 > 编程笔记 > 正文
已解决

Windows下的Elasticsearch-head安装

来自网友在路上 157857提问 提问时间:2023-09-19 17:18:03阅读次数: 57

最佳答案 问答题库578位专家为你答疑解惑

Windows下的Elasticsearch-head安装

参考:https://gitcode.net/mirrors/mobz/elasticsearch-head

需要用到 npm 命令,这里可以提前下载安装下Node.js 即可自动安装npm
Node.js 下载安装地址:https://nodejs.org/en/download


# 进到本地某一个目录下
git clone https://gitcode.net/mirrors/mobz/elasticsearch-head.git

# 找到安装并进入 elasticsearch-head目录,选中当前目录,cmd 回车进入,依次执行以下命令
npm install
npm run start

在这里插入图片描述

在这里插入图片描述


  • npm install 可能出现的报错:
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

在这里插入图片描述

报错日志提示文件如无法下载,两种方式处理:

(出自:https://www.cnblogs.com/wlgwilianm123/p/14167621.html)

  1. 网速允许直接下载
npm install -g phantomjs
  1. 先进行淘宝镜像安装,再用cnpm进行下载
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install -g phantomjs

安装完之后,回过头去重新执行两条npm命令即可


执行完成之后打开浏览器访问端口即可

http://localhost:9100/

在这里插入图片描述


PS:如果有写错或者写的不好的地方,欢迎各位大佬在评论区留下宝贵的意见或者建议,敬上!如果这篇博客对您有帮助,希望您可以顺手帮我点个赞!不胜感谢!


原创作者:wsjslient


查看全文

99%的人还看了

猜你感兴趣

版权申明

本文"Windows下的Elasticsearch-head安装":http://eshow365.cn/6-9440-0.html 内容来自互联网,请自行判断内容的正确性。如有侵权请联系我们,立即删除!