Increase the maximum number of opened files in Linux/file descriptor 1. view the maximum number of opened files
1. view the system and the maximum number of opened files [root @ localhost ~] # Cat/proc/sys/fs/file-max65535 www.2cto.com 2. view the maximum number of files opened by the current user # ulimit-Hn // view hard limits # ulimit-Sn // view Soft Limits
Ii. Set the maximum number of opened files
1. System and settings # vi/etc/sysctl. added conf: fs. file-max = 100000 takes effect immediately: # sysctl-p2, user-level settings vi/etc/security/limits. the conf settings are as follows: www.2cto.com httpd soft nofile 4096 httpd hard nofile 10240httpd is a user. Wildcards * can be used to represent all users. To make the limits. conf file take effect, make sure that the pam_limits.so file is added to the Startup File. View/etc/pam. in the d/login file, session required/lib/security/pam_limits.so takes effect immediately using the following command: # su-httpd $ ulimit-Hn 10240 $ ulimit-Sn 4096 author Zhu MahaI