不生效的原因是,root用户对*号不生效,需要单独设置。
修改后重新连接ssh即可ulimit -a查看。
vim /etc/security/limits.conf
root soft nofile 65535
root hard nofile 65535
* soft nofile 65535
* hard nofile 65535
参考:
https://www.cnblogs.com/coding-my-life/p/11220989.html
不生效的原因是,root用户对*号不生效,需要单独设置。
修改后重新连接ssh即可ulimit -a查看。
vim /etc/security/limits.conf
root soft nofile 65535
root hard nofile 65535
* soft nofile 65535
* hard nofile 65535
参考:
https://www.cnblogs.com/coding-my-life/p/11220989.html