关闭 Apache log 的 档

Company Antivirus Server hard disk space,I thought that is due to increasing pattern and related programs,Only to find the original inventory of antivirus system attachment Apache caused。

Apache program directory underneath a log folder,Been inside storage access and error.,My Server,Access.log size of up to 10G,Therefore bound to be a weight-loss program。

 

Can be found on the Internet a lot to do for this log split instruction,After 試過 measure,這些 raw Apache log 予產 Yuzuru not directly determined,Therefore, only the syntax Remark up to。

1.開啟httpd.conf

2.搜寻 "access.log",將"CustomLog logs/access.log combined"前面加上"#"。

3.搜寻 "errorlog",The & quot; ErrorLog logs / error.log & quot; preceded & quot; # & quot;。

4.After filing,Restart Apache。

 

[Links]

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.