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

启动Elasticsearch报错:

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

意思是虚拟内存上限的值设置得太小了,至少要262144

 

临时方法:

sysctl -w vm.max_map_count=262144

 

永久方法:

vim /etc/sysctl.conf

添加一行:

vm.max_map_count=262144

更新配置

sysctl -p

 

posted @ 2021-12-28 19:07  Clotho_Lee  阅读(535)  评论(0编辑  收藏  举报