游戏网站开发计划书,东莞平面设计公司有哪些,个人建什么网站比较好,cms企业网站模板1、限制某个用户的
vim /etc/security/limits.confroot soft nofile 65535
root hard nofile 65535
*soft nofile 65535
*hard nofile 65535第一行指root用户的每个进程可开启最大的文件数#xff08;软限制#xff0c;只警告#xff09;第二行指root用户的每个进程可开启最…1、限制某个用户的
vim /etc/security/limits.confroot soft nofile 65535
root hard nofile 65535
*soft nofile 65535
*hard nofile 65535第一行指root用户的每个进程可开启最大的文件数软限制只警告第二行指root用户的每个进程可开启最大的文件数硬限制无法开启多的文件了第三、四行指所有用户的。
设定的值不能超过/proc/sys/fs/nr_open里的值完全够用了。
2、限制系统文件开启最大数
vim /etc/sysctl.conf
fs.file-max 6815744执行生效sysctl -p