linux服务器默认连接数配置

vi /etc/security/limits.d/90-nproc.conf

 

* - nofile 65536
* - nproc 65536
root soft nproc unlimited

 

vi  /etc/security/limits.conf    注销所有

#*               hard    rss             10000

#@student        hard    nproc           20

#@faculty        soft    nproc           20

#@faculty        hard    nproc           50

#ftp             hard    nproc           0

#@student        -       maxlogins       4*          -       nofile    65535

# End of file

~/.bash_profileulimit -c unlimited

posted @ 2016-08-10 16:47  雾火  阅读(757)  评论(0编辑  收藏  举报