In a Linux system, if a process opens a file handle that exceeds the system default of 1024, the "Too many files open" message is prompted, so you want to adjust the open file handle limit.
There are two ways to do this:
Modify the etc/security/limits.conf configuration file and permanently take effect after reboot
At the end of the file, add the following two paragraphs:
* Soft Nofile 65535
* Hard Nofile 65535
Enter the command in the console immediately, but it will become the default value after reboot 1024
Ulimit-shn 65535
It is recommended to use the first method for permanent entry.
This article is from the "light meal state-Octopus" blog, please make sure to keep this source http://daiyiyi.blog.51cto.com/2358701/1752645
Process opens with a file handle that exceeds the system default of 1024, it will prompt "Too many files open" information