转自:http://blog.sina.com.cn/s/blog_7b6fc4c90100yn57.html
ulimit: open files: cannot modify limit: Operation not permitted
解决办法:
vi /etc/security/limits.conf
添加:
* soft nofile 65535
* hard nofile 65535
优化内核时:
* soft nproc 65535
*
hard
nproc
65535
# End of file
* - core unlimited
* - nofile 400000
vi /etc/profile
ulimit -c unlimited ulimit -s unlimited
原文链接:https://www.f2er.com/centos/380844.html