docker vm.max_map_count [65530] is too low

标签:memory   永久   normal   virtual   cse   error   virt   exit   添加   

docker 启动 elasticsearch 闪退

docker logs elasticsearch

... ...
ERROR: [1] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
ERROR: Elasticsearch did not exit normally - check the logs at /usr/share/elasticsearch/logs/docker-cluster.log

... ...

临时修改

sysctl -w vm.max_map_count=262144

查看结果:

sysctl -a|grep vm.max_map_count

显示:

vm.max_map_count = 262144

永久修改:

解决办法:

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

vm.max_map_count=262144

docker vm.max_map_count [65530] is too low

标签:memory   永久   normal   virtual   cse   error   virt   exit   添加   

原文地址:https://blog.51cto.com/14922620/2575417

版权声明:完美者 发表于 2021-01-01 12:33:36。
转载请注明:docker vm.max_map_count [65530] is too low | 完美导航

暂无评论

暂无评论...