elasticsearch -- 问题纪录

报错1:

[1]: max file descriptors [65535] for elasticsearch process is too low, increase to at least [65536]

  

解决:

sudo vi /etc/security/limits.conf

添加如下内容:

* soft nofile 65536 #【修改该项即可】

* hard nofile 131072

* soft nproc 2048

* hard nproc 4096

需要系统重启。

报错2

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

  

解决:

sudo vi /etc/sysctl.conf

添加下面配置:

vm.max_map_count=655360 【修该项即可】

并执行命令:

sysctl -p

  

原文地址:https://www.cnblogs.com/shifu204/p/10654588.html