1.报错:max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
解决:
vim /etc/sysctl.conf
在文件末尾添加以下一行内容:vm.max_map_count=262144
使文件立即生效:sudo sysctl -p
2.报错:max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
解决:
vim /etc/security/limits.conf
在文件最后面添加下面内容
* soft nofile 65535
* hard nofile 65535
elasticsearch启动报错:
最新推荐文章于 2024-07-27 22:08:53 发布
本文介绍了如何解决Linux系统中关于max_map_count和max_file_descriptors的错误提示,分别涉及修改sysctl.conf和limits.conf文件,以适应Elasticsearch进程的需求。
摘要由CSDN通过智能技术生成