# For more information on configuration, see:# * Official 中文版 documentation:http://nginx.org/en/docs/# * official Russian documentation:http://nginx.org/ru/docs/#系统用户账号user www; #nginx进程数, generally set to the number of CPUs worker_processes 1;error_log/var/log/nginx/error.log; #error_log/var/log/nginx/error.log N Otice; #error_log/var/log/nginx/error.log info;pid/var/run/nginx.pid;events {worker_connections 1024; Use Epoll;} HTTP {include/etc/nginx/mime.types; Default_type Application/octet-stream; Log_format Main ' $remote _addr-$remote _user [$time _local] "$request" "$status $body _bytes_sent" $http _referer "'" $http _user_agent "" $http _x_forwarded_for "; Access_log/var/log/nginx/access.log main; Sendfile on; #tcp_nopush on; #keepalive_timeout 0; Keepalive_timeout 10; gzip on; Client_body_temp_path/tmp/nginx 1 2; Client_max_body_size 5m; # Load Config Files from THE/ETC/NGINX/CONF.D directory # The default server was in Conf.d/default.conf INCLUDE/ETC/NGINX/CONF.D /*.conf;}
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
The above describes the Nginx server basic configuration, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.