当前位置: 代码迷 >> 综合 >> ElasticSeacrch 启动问题 - max virtual memory areas is too low【亲测】
  详细解决方案

ElasticSeacrch 启动问题 - max virtual memory areas is too low【亲测】

热度:47   发布时间:2023-09-30 05:03:02.0

当修改 $ES_HOME/config/elasticsearch.yml 配置文件中的host地址时,

network.host: x.x.x.x

再次启动时,如果报错

max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
证明虚拟内存太小,至少需要262144 

所以需要执行

sudo vi /etc/sysctl.conf 

在最后一行添加 

vm.max_map_count=655360

保存退出

执行 sudo sysctl -p 后

再次启动 ./bin/elasticsearch 即可。

 

  相关解决方案