@echo off
cd \
cd nginx\
cd logs\
tskill nginx
tskill nginx
del -F access.log
del -F error.log
rem
cd \
cd nginx\
nginx -t
nginx -s reload
nginx
echo on
原来把access_log nul ; 这样就OK 了。
#user nobody;
worker_processes 1;
error_log off ;
##error_log logs/error.log notice;
##error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 2048;
}
http {
include mime.types;
include upstream.conf;
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 nul ;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server_names_hash_bucket_size 2048;
server
{
listen 80;
server_name pr1.borwork.com;
location /nginx_status {
stub_status on;
access_log off;
}
}
include pr_include.conf;
include website_server.conf;
include single_domain_blog.conf;
}
阅读(4567) | 评论(0) | 转发(0) |