ulimit  设置

1、 /etc/security/limit.conf
*               soft    nofile          65535
*               hard    nofile          65535
*               soft    nproc           65535
*               hard    nproc           65535

 
 
2. 直接生效
ulimit -n 65535
 
 
3. nginx 配置
worker_rlimit_nofile 65535;
events {
worker_connections  65535;
}

posted on 2017-08-08 11:20  荣锋亮  阅读(494)  评论(0编辑  收藏  举报

导航