docker 启动 elasticsearch 闪退docker
docker logs elasticsearchbootstrap
... ...
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.logelasticsearch
... ...ide
临时修改orm
sysctl -w vm.max_map_count=262144it
查看结果:ast
sysctl -a|grep vm.max_map_countclass
显示:map
vm.max_map_count = 262144grep
永久修改:
解决办法:
在 /etc/sysctl.conf文件最后添加一行
vm.max_map_count=262144