1. View The Linux system version number Cat/etc/issue See all Linux machines for CentOS release 5.5 (Final)
2. Modify The method according to linux5.x:
A. log in as root, modify the system parameter number configuration , vi/etc/sysctl.conf
kernel.msgmax=65536(modified parameters)
Fs.file-max = 65536 (new parameter)
Run the sysctl-p command to make the parameters effective immediately after the modification is complete.
B. Root user Modify vi/etc/security/limits.conf after adding the following configuration at the end, log back in to the system.
* Soft Nproc 65536
* Hard Nproc 65536
* Soft Nofile 65536
* Hard Nofile 65536
C. using the normal user Cisco Login System to execute the command ulimit-a View the modified content has taken effect:
[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) 34816
Max locked Memory (Kbytes, L) 32
Max memory Size (Kbytes,-m) unlimited
open Files (-N) 65536
pipe size (512 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) 65536
Virtual Memory (Kbytes,-V) Unlimited
File locks (-X) Unlimited
This article is from the "less stubborn" blog, please be sure to keep this source http://xushaojie.blog.51cto.com/6205370/1697449
Linux modified maximum file open, handle number