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