2010年4月28日

Increasing the number of open file descriptors – LINUX

Increasing the number of open file descriptors – LINUX, take 131072 as example.

1, increase this to 131072 for all users


vi /etc/security/limits.conf



* soft nofile 131072



* hard nofile 131072



2, ulimit –n 131072



3, You may have to modify ssh and login in pam.d. Because if not, you open a session using ssh, it will not take effect.



vi /etc/pam.d/sshd



Add



session required /lib/security/pam_limits.so



vi /etc/pam.d/login



Add



session required /lib/security/pam_limits.so



4, service sshd restart

没有评论: