1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| 查看: ulimit -n ulimit -u ulimit -s ulimit -a 修改: vi /etc/security/limits.conf 添加: root soft nofile 65536 root hard nofile 65536 * soft nofile 65536 * hard nofile 65536 root soft nproc 32768 root hard nproc 32768 * soft nproc 32768 * hard nproc 32768
vi /etc/security/limits.d/90-nproc.conf #* soft nproc 1024 * soft nproc 32768 vi /etc/pam.d/login最后添加禁止调试文件 session required /lib/security/pam_limits.so 或: Shell命令: echo ulimit -HSn 65536 >> /etc/rc.local echo ulimit -HSn 65536 >>/root/.bash_profile ulimit -HSn 65536
|