vi /etc/security/limits.conf
* hard nofile 655360
* soft nofile 655360
# End of file
vi /etc/pam.d/login
session required /usr/lib64/security/pam_limits.so
[root@localhost ~]# 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) 31122
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 655360
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 31122
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited