I changed my system's Ulimit in /etc/security/limits.conf like this:
# This is added for Open File Limit Increase
* hard nofile 131072
* soft nofile 65535
root hard nofile 65536
root soft nofile 65536
# This is added for Nginx User
nginx hard nofile 131072
nginx soft nofile 65535
vi /etc/sysctl.conf
fs.file-max = 70000 <--- 추가
sysctl -p
[ /etc/nginx/nginx.conf ]
user nginx;
worker_processes 2;
worker_rlimit_nofile 65535; <--- 추가
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 10240; <--- 변경
multi_accept on; <--- 추가
use epoll; <--- 추가
}