vim /etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
reboot
ulimit -a
#配置Nginx worker进程最大打开文件数 worker_rlimit_nofile 65535; events { #单个进程允许的客户端最大连接数 worker_connections 20480; #使用epoll模型 use epoll; }
vim /etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
reboot
ulimit -a
#配置Nginx worker进程最大打开文件数 worker_rlimit_nofile 65535; events { #单个进程允许的客户端最大连接数 worker_connections 20480; #使用epoll模型 use epoll; }