一、windows中es执行步骤

参考:https://blog.csdn.net/qq_21197507/article/details/115076913

  1. 下es安装包
  2. 下es前端gitHub代码,然后npm -i安装,npm run start 启动
  3. 安装kibana

二、遇到的问题

1. 第二步安装前端代码依赖报错

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! phantomjs-prebuilt@2.1.15 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs-prebuilt@2.1.15 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     D:\heyutool\nodejs\node_cache\_logs\2024-07-16T10_05_38_914Z-debug.log

解决方案:

npm install phantomjs-prebuilt@2.1.16 --ignore-scripts

参考:https://blog.csdn.net/XuM222222/article/details/82790802

2. 第二步安装完es-head后无法与es进行连接,跨域

在es配置文件中加上

http.cors.enabled: true
http.cors.allow-origin: "*"

参考:https://blog.csdn.net/LLDDDS/article/details/108930700

3. 第三步安装kibana后无法和es同时打开并连接

原因:有可能是版本不一致问题
解决:确实是,es,ik,kibana版本保持一致

3. 无法再es-head页面上创建索引,创建索引请求无响应

原因:cmd客户端类似被打断点一样的东西
解决:在cmd上点击回车,让他继续往下走

点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部