全球主机交流论坛

标题: 求助 如何關閉 Contents for access_log 檔案會一直增加? [打印本页]

作者: bluesky    时间: 2009-5-24 12:33
标题: 求助 如何關閉 Contents for access_log 檔案會一直增加?
求助 如何關閉 Contents for access_log  檔案會一直增加?

已關閉 Processed Logs , 但是發現 access_log 也成長好快  

如圖(附件)所示:
(, 下载次数: 18)
作者: cpuer    时间: 2009-5-24 13:08
看这个:http://www.lilynana.eu.org/thread-1235-1-2.html
作者: bluesky    时间: 2009-5-24 13:47
原帖由 cpuer 于 2009-5-24 13:08 发表
看这个:http://www.lilynana.eu.org/thread-1235-1-2.html

謝謝版大...先前已依照該文章設定
結果是 CustomLog 不會增加了

不過 access_log ... 卻2、3天就長大到 1GB大小
所以才來提問

我找到刪除的地方了
/home /httpd / Domains / stats  
可以刪除裡頭的所有檔案

但是要怎樣抑制再生成 access_log 好像沒人討論過
(, 下载次数: 18)

[ 本帖最后由 bluesky 于 2009-5-24 14:00 编辑 ]
作者: bluesky    时间: 2009-5-24 14:05
GOOGLE  到官網的資料
http://httpd.apache.org/docs/2.2/logs.html#accesslog

下面這個指令是不是要用ssh登入執行?
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog logs/access_log common
作者: cpuer    时间: 2009-5-24 14:10
标题: 回复 4# 的帖子
对,SSH登陆。
作者: bluesky    时间: 2009-5-24 14:17
原帖由 cpuer 于 2009-5-24 14:10 发表
对,SSH登陆。

謝謝版大
作者: cpuer    时间: 2009-5-24 15:10
标题: 回复 6# 的帖子





欢迎光临 全球主机交流论坛 (https://lilynana.eu.org/) Powered by Discuz! X3.4