Changes to the open files parameters viewed by command ulimit-a:
[Email protected] ~]# ulimit-a
Core file size (blocks,-c) 0
Data seg Size (Kbytes,-D) Unlimited
Scheduling Priority (-e) 0
File size (blocks,-f) Unlimited
Pending signals (-i) 7697
Max locked Memory (Kbytes, L) 64
Max memory Size (Kbytes,-m) unlimited
Open files (-N) 65535
Pipe Size (bytes,-p) 8
POSIX message queues (bytes,-Q) 819200
Real-time priority (-R) 0
Stack size (Kbytes,-s) 10240
CPU time (seconds,-t) unlimited
MAX User Processes (-u) 1024
Virtual Memory (Kbytes,-V) Unlimited
File locks (-X) Unlimited
The command ulimit-n number can be modified directly, but only the open files of the current session are modified, reopening a connection to view the open files or the original.
Modify the configuration file/etc/security/limits.conf add
* Soft Nofile 65535
* Hard Nofile 65535
Note that the format, will take effect immediately, reconnect a bit can see, ulimit-a.
Does not require a restart, it will take effect immediately.
This article is from the "Remember" blog, be sure to keep this source http://xiaozuo2010925.blog.51cto.com/3528655/1884207
Modify the Linux open files parameter to be effective immediately without restarting