VPS侦探论坛

 找回密码
 注册
查看: 7876|回复: 5

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

[复制链接]
发表于 2011-3-19 10:30:29 | 显示全部楼层 |阅读模式

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

[ 本帖最后由 nginx 于 2011-3-21 14:15 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-3-21 14:19:13 | 显示全部楼层


试过好几个办法好像都不管用了。。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-3-21 14:35:07 | 显示全部楼层

回复 1# 的帖子


看看nginx.conf 中的设置,再看看日志文件的权限设置
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-3-21 16:21:35 | 显示全部楼层



回军哥。。nginx.conf里的日志配置是对的。日志的权限我改成了0777还是不行

        log_format  ixxx5  '$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.log  ixxx5;
        }
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-3-21 17:59:43 | 显示全部楼层

回复 4# 的帖子


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

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2011-3-21 20:57:14 | 显示全部楼层

[root@wowo~]# /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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-20 00:31 , Processed in 0.026965 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表