当前位置:网站首页>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
边栏推荐
猜你喜欢
【学习】从零开始的音视频开发(9)——NuPlayer
[learning] audio and video development from scratch (9) -- nuplayer
LeetCode简单题之三除数
谈谈那些基础但不简单的股票数据
1216_ MISRA_ C standard learning notes_ Rule requirements for control flow
5.6 综合案例-RTU-
Listed on the Shenzhen Stock Exchange: the market value is 5.2 billion yuan. Lu is the East and his daughter is American
Discussion on ES6 tail tune optimization
监控智能回放是什么,如何使用智能回放查询录像
ASAN 极简原理
随机推荐
谈谈那些基础但不简单的股票数据
青苹果影视系统源码 影视聚合 影视导航 影视点播网站源码
Comparison of indoor positioning technology
The annotation is self-defined by implementing the parameter parser handlermethodargumentresolver interface
Search the complete navigation program source code
LeetCode15. Sum of three
clang 如何产生汇编文件
剑指offer day24 数学(中等)
获取TrustedInstaller权限
Rotation function of leetcode medium problem
Community group purchase applet source code + interface DIY + nearby leader + supplier + group collage + recipe + second kill + pre-sale + distribution + live broadcast
Qt读取路径下所有文件或指定类型文件(含递归、判断是否为空、创建路径)
ASAN 极简原理
The following program deletes n consecutive words starting from the ith character from the string str
sql 使用过的查询语句
PHP generates short links: convert numbers to letters and letters to numbers
2022.4.11-4.17 AI industry weekly (issue 93): the dilemma of AI industry
Interesting JS code
ansible自動化運維詳解(一)ansible的安裝部署、參數使用、清單管理、配置文件參數及用戶級ansible操作環境構建
QT reading and writing XML files