nginx 发表于 2011-3-19 10:30:29

求救军哥!删除网站日志文件~重建同名文件。日志不被更新了?

我删除了网站的的日志文件。然后重建了同名文件。但日志不被更新了!!restart过了 还是不行~谢谢军哥了

[ 本帖最后由 nginx 于 2011-3-21 14:15 编辑 ]

nginx 发表于 2011-3-21 14:19:13

试过好几个办法好像都不管用了。。

licess 发表于 2011-3-21 14:35:07

回复 1# 的帖子

看看nginx.conf 中的设置,再看看日志文件的权限设置

nginx 发表于 2011-3-21 16:21:35

回军哥。。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;
        }

licess 发表于 2011-3-21 17:59:43

回复 4# 的帖子

/usr/local/nginx/sbin/nginx -t 看看有错误没

nginx 发表于 2011-3-21 20:57:14

# /usr/local/nginx/sbin/nginx -t
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
页: [1]
查看完整版本: 求救军哥!删除网站日志文件~重建同名文件。日志不被更新了?