elasticsearch启动不起来,错误码78解决办法

当运行ElasticsearchDocker容器时遇到退出代码78,问题可能与vm.max_map_count设置过低有关。解决方案是将该值提高到至少262144,可以通过执行`sysctl-wvm.max_map_count=262144`临时解决,但重启后会失效。要永久修改,需在`/etc/sysctl.conf`文件末尾添加行`vm.max_map_count=262144`。
摘要由CSDN通过智能技术生成
elasticsearch启动不起来,错误码78解决办法

Problem:
You want to run ElasticSearch using docker, but the container immediately stops again using this error message

elasticsearch exited with code 78
1

or

elasticsearch2 exited with code 78
1

Solution:
If you look through the entire log message, you’ll find lines like

elasticsearch     | [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
1

解决:

切换到root用户

执行命令:

sysctl -w vm.max_map_count=262144
1

查看结果:

sysctl -a|grep vm.max_map_count
1

显示:

vm.max_map_count = 262144
1

上述方法修改之后,如果重启虚拟机将失效,所以:

解决办法:

在 /etc/sysctl.conf文件最后添加一行

vm.max_map_count=262144
1

即可永久修改

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

TimBL

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值