• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • Apache的log文件長得太快了

    發表于:2007-05-25來源:作者:點擊數: 標簽:
    Apache的log文件長得太快了 我的apache 服務器 的log文件長得很快。 我想定期把一個階段的log文件,放到另外一個目錄里做備份 比如,每星期把log文件的全部內容放到另外一個文件里,讓當前的log文件大小為0。每星期如此重復。 該怎么做? 手動怎么做? 有什

    Apache的log文件長得太快了 

    我的apache服務器的log文件長得很快。
    我想定期把一個階段的log文件,放到另外一個目錄里做備份
    比如,每星期把log文件的全部內容放到另外一個文件里,讓當前的log文件大小為0。每星期如此重復。

    該怎么做?
    手動怎么做?
    有什么自動的辦法么?

    多謝

     deathcult 回復于:2003-09-21 14:45:01
    man rotatelogs

     lzv 回復于:2003-09-22 10:35:20
    [url]http://httpd.apache.org/docs/misc/FAQ.html#rotate[/url]

    The simple answer: by piping the transfer log into an appropriate log file rotation utility.

    The longer answer: In the src/support/ directory, you will find a utility called rotatelogs which can be used like this:

       TransferLog "|/path/to/rotatelogs /path/to/logs/aclearcase/" target="_blank" >ccess_log 86400"
    to enable daily rotation of the log files.
    A more sophisticated solution of a logfile rotation utility is available under the name cronolog from Andrew Ford's site at [url]http://www.cronolog.org/[/url]. It can automatically create logfile subdirectories based on time and date, and can have a constant symlink point to the rotating logfiles. (As of version 1.6.1, cronolog is available under the Apache License). Use it like this:

       CustomLog "|/path/to/cronolog --symlink=/usr/local/apache/logs/access_log /usr/local/apache/logs/%Y/%m/access_log" combined

     xiaoxiaoke 回復于:2004-02-15 20:50:23
    強烈建議采用cronolog工具,可以針對不同周期來輪循,而且對webaliaze工具也支持得很好

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>