elasticsearch -- 问题纪录

报错1:elasticsearch

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

  

解决:spa

sudo vi /etc/security/limits.conf

添加以下内容:

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

* hard nofile 131072

* soft nproc 2048

* hard nproc 4096

须要系统重启。

 

 

报错2code

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

  

解决:blog

sudo vi /etc/sysctl.conf

添加下面配置:

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

并执行命令:

sysctl -p
相关文章
相关标签/搜索