Nginx configuration file nginx.conf Chinese detailed explanation (summary)
the PS: Nginx has been used for two or three years, and now I often encounter some very basic questions from new users, and I don’t have time to answer them one by one. I spent some time this afternoon, combined with my own experience, to configure the main configuration of Nginx Share the parameter description, and also refer to some network content. This is the most complete Chinese description of Nginx configuration parameters. For more detailed module parameters, please refer to: http://wiki.nginx.org/Main the the #Define the user and user group for Nginx to run user www www; the #nginx process number, it is recommended to set it equal to the total number of CPU cores. worker_processes 8; the #Global error log definition type, [ debug | info | notice | warn | error | crit ] error_log ar/loginx/error.log info; the #Process file pid ar/runinx.pid; the #The maximum number of file descriptors opened by an nginx process, the theoretical value should be the maximum number of open files (system value ulimit -n) divided by the number of nginx processes, but nginx allocation requests are not uniform, so it is recommended to use ulimit -n The value remains the same. worker_rlimit_nofile…