actual combat 35 —— es

一、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版本保持一致

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

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

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值