docker下ElasticSearch的坑之重启宿主机

重启物理机后,容器无法正常启动,提示:

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

官方文档只有设置sysctl -w vm.max_map_count=262144,然而该设置在重启后会被重置,于是我们要将该设置固化:

echo "vm.max_map_count=262144" > /etc/sysctl.conf
sysctl -p
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×