求救军哥!删除网站日志文件~重建同名文件。日志不被更新了?
我删除了网站的的日志文件。然后重建了同名文件。但日志不被更新了!!restart过了 还是不行~谢谢军哥了[ 本帖最后由 nginx 于 2011-3-21 14:15 编辑 ] 试过好几个办法好像都不管用了。。
回复 1# 的帖子
看看nginx.conf 中的设置,再看看日志文件的权限设置 回军哥。。nginx.conf里的日志配置是对的。日志的权限我改成了0777还是不行log_formatixxx5'$remote_addr - $remote_user [$time_local] $request '
'$status $body_bytes_sent $http_referer '
'$http_user_agent $http_x_forwarded_for';
access_log/home/wwwlogs/ixxx5.logixxx5;
}
回复 4# 的帖子
/usr/local/nginx/sbin/nginx -t 看看有错误没 # /usr/local/nginx/sbin/nginx -tthe configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
页:
[1]