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;
}
原文地址:https://www.cnblogs.com/rongfengliang/p/7305921.html