当前位置:网站首页>vmware 搭建ES8的常见错误
vmware 搭建ES8的常见错误
2022-04-23 07:30:00 【醉世老翁】
1. max virtual memory areas vm.max_map_count [65530] is too low, increase to at least
解决方法:很明显,已经提示了内存过少,如果虚拟机是2G内存,是不够的,我关机调成了4G,还是出现这个,然后再用root用户修改/etc/sysctl.conf
vm.max_map_count=655360
添加完之后 sysctl -p 立刻生效。

2. max file descriptors [4096] for elasticsearch process is too low
解决方法:很明显,文件数过小,修改/etc/security/limits.conf,然后切换到普通用户,ulimit -n查看一下是否生效了,然后启动就正常了
* soft nofile 924000
* hard nofile 924000

启动正常

3. 访问页面不出东西,curl: (52) Empty reply from server
解决方法: 使用https访问,http不允许访问,我也是看了日志之后才知道的。
或者修改配置文件elasticsearch.yml,默认是true的,这样就不用使用https访问了,也不需要认证了
xpack.security.enabled: false
输入用户名密码,用户名是elastic ,密码如果不知道是啥,那就可以重新设置,正常是第一次启动的时候输入到日志里了,搜索关键字password应该可以找到,我这删除了几次日志,看不到密码了,索性重置了。
./elasticsearch-reset-password -u elastic #bin目录下



4. 重置密码失败ERROR: Failed to determine the health of the cluster
解决方法:因为我在问题3的时候,认证选择了false,改回true,重置密码就可以啦。(因为取消认证,所以不需要用户,认证才会失败)

5. 访问kibana空白。
解决方法:kibana运行,端口启动,但是访问就是空白页面,kibana.yml配置文件中没有开启“elasticsearch.hosts”,打开注释,重启kibana,浏览器访问正常。

后续慢慢更新。。。
版权声明
本文为[醉世老翁]所创,转载请带上原文链接,感谢
https://blog.csdn.net/wojiuwangla/article/details/124345228
边栏推荐
- 使用JWT生成与解析Token
- 剑指offer day24 数学(中等)
- The annotation is self-defined by implementing the parameter parser handlermethodargumentresolver interface
- 欧圣电气深交所上市:市值52亿 陆为东父女为美国籍
- MySQL数据库中delete、truncate、drop原理详解
- [effective go Chinese translation] part I
- 如何保护开源项目免遭供应链攻击-安全设计(1)
- ASAN 极简原理
- [learning] audio and video development from scratch (9) -- nuplayer
- Common regular expressions
猜你喜欢

Why are there 1px problems? How?

An article understands variable lifting

搜一下导航完整程序源码
![[appium] encountered the problem of switching the H5 page embedded in the mobile phone during the test](/img/4a/c741ec4f9aa724e150a5ae24d0f9e9.png)
[appium] encountered the problem of switching the H5 page embedded in the mobile phone during the test

ansible自動化運維詳解(一)ansible的安裝部署、參數使用、清單管理、配置文件參數及用戶級ansible操作環境構建

校园转转二手市场源码下载

396. Rotate Function

Qt利用QtXlsx操作excel文件

2022.4.11-4.17 AI行业周刊(第93期):AI行业的困局

Draw a circle quickly in MATLAB (the one that can be drawn directly given the coordinates and radius of the center of the circle)
随机推荐
Common regular expressions
使用JWT生成与解析Token
1216_ MISRA_ C standard learning notes_ Rule requirements for control flow
The annotation is self-defined by implementing the parameter parser handlermethodargumentresolver interface
分组背包呀
英语课小记(四)
dried food! Point based: differentiable Poisson solver
怎么读书读论文
2022.4.11-4.17 AI industry weekly (issue 93): the dilemma of AI industry
Brief description of CPU
Sword finger offer Day24 math (medium)
Multi vision slam
Somme numérique de la chaîne de calcul pour un problème simple de leetcode
JS converts tree structure data into one-dimensional array data
刨析——浏览器如何工作
C语言学习记录——삼십팔 字符串函数使用和剖析(2)
AQS & ReentrantLock 实现原理
情境领导者-第七章、解决绩效问题
LeetCode简单题之重新排列日志文件
剑指offer day24 数学(中等)