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;
}
时间: 2024-10-09 18:11:21