Too program open files Solution
Too program open files Solution
1. modify the content of the/etc/security/limits. conf file.
Run the sudo vim/etc/security/limits. conf command to enter the/etc/security/limits. conf file.
Add the following two statements to the/etc/security/limits. conf file, save and exit.
* Soft nofile 655360
* Hard nofile 655360
The asterisk indicates the global, soft indicates the software, hard indicates the hardware, and nofile indicates the number of files that can be opened.
2. modify the content of the/etc/pam. d/login file.
To make the limits. conf file take effect, make sure that the pam_limits.so file is added to the Startup File.
Make sure that the/etc/pam. d/login file contains the following statement.
Session required/lib/security/pam_limits.so
3. You can see the effect after you log on again after the modification. You can view the effect through ulimit-n.
This article permanently updates the link address: