版本:elasticsearch-7.10.0
在vmware虚拟机中安装启动 elasticsearch 报错:
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
参照网友解决方案
(原文链接:https://blog.csdn.net/qq_38636133/article/details/105621876)
结果未生效,后参照limits.conf文件内容上下文,修改了空格大小,保存退出,重新登录用户,生效
补充下:
* soft nofile 65536
* hard nofile 65536
*号表示所有用户,如果指定用户,则把*号替换成指定用户名。如给sanmao配置,则
sanmao soft nofile 65536
sanmao hard nofile 65536
再次强调,注意 参照limits.conf文件内容上下文,修改了空格大小