worker_connections だけ増やしていると [alert] 27052#0: accept() failed (24: Too many open files) などと言われて悲しいので設定する。 /etc/security/limits.conf nginx soft nofile 10000 nginx hard nofile 10000 /proc /proc/sys/fs/file-max の値が小さければ/etc/sysctl.conf に適当に設定 nginx.conf 適当に。 worker_rlimit_nofile 8192; worker_connections 2048; worker_processes 4;