CentOS ulimit

时间:2021-06-03 07:49:00

Linux 文件系统设置 文件句柄数

ulimit -n 查看

echo "* - nofile 65536" >> /etc/security/limits.conf
echo "* soft noproc 65536" >> /etc/security/limits.conf
echo "* hard noproc 65536" >> /etc/security/limits.conf
echo "* soft nofile 65536" >> /etc/security/limits.conf
echo "* hard nofile 65536" >> /etc/security/limits.conf

noproc 是代表最大进程数

nofile 是代表最大文件打开数