How to set nginx max open files?
问题 Though I have done the following setting, and even restarted the server: # head /etc/security/limits.conf -n2 www-data soft nofile -1 www-data hard nofile -1 # /sbin/sysctl fs.file-max fs.file-max = 201558 The open files limitation of specific process is still 1024/4096: # ps aux | grep nginx root 983 0.0 0.0 85872 1348 ? Ss 15:42 0:00 nginx: master process /usr/sbin/nginx www-data 984 0.0 0.2 89780 6000 ? S 15:42 0:00 nginx: worker process www-data 985 0.0 0.2 89780 5472 ? S 15:42 0:00 nginx