|
@@ -1,9 +1,6 @@
|
|
|
worker_processes 2; ## 默认1,一般建议设成CPU核数1-2倍
|
|
|
-error_log /var/log/error.log; ## 错误日志路径
|
|
|
-pid /var/log/nginx.pid; ## 进程id
|
|
|
|
|
|
events {
|
|
|
- use epoll;
|
|
|
worker_connections 2048;
|
|
|
}
|
|
|
|
|
@@ -16,7 +13,6 @@ http {
|
|
|
log_format main '$remote_addr - $remote_user [$time_local] $status '
|
|
|
'"$request" $body_bytes_sent "$http_referer" '
|
|
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
- access_log /var/log/access.log main;
|
|
|
sendfile on;
|
|
|
tcp_nopush on; # sendfile开启时才开启。
|
|
|
|