[root@localhost ~]# vim /etc/security/limits.conf
root soft nofile 65535
root hard nofile 65535
* soft nofile 65535
* hard nofile 65535
[root@localhost ~]# vi /etc/security/limits.d/20-nproc.conf
* sotf nproc 65535
root soft nproc unlimited
[root@localhost ~]# vi /etc/profile
ulimit -u 65535
ulimit -n 65535