[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

posted on 2017-04-09 11:10  新美好时代  阅读(377)  评论(0编辑  收藏  举报