首页 > 代码库 > ulimit  设置

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;
}
 
 
 
 

ulimit  设置