In Linux, when too many files are opened by running processes and the limit of the maximum number of files opened by the system is exceeded, the too program open files error occurs, don't be nervous. You just need to modify the system configuration. The procedure is as follows:
1. Open the configuration file:
Vim/etc/security/limits. conf
2. Add two lines at the end of the file:
# * Soft Core 0 # * hard RSS 10000 # @ student hard nproc 20 # @ faculty soft nproc 20 # @ faculty hard nproc 50 # ftp hard nproc 0 # @ student-maxlogins 4 * -nproc 102400 *-nofile 102400
The last "102400" is the limit value for modifying the maximum number of opened files. You need to fill it out. However, if it is set to "102400", in many cases, the too program open files error will no longer occur. This can be regarded as one of the system optimizations after the system is installed.