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]
- 限制 Apache 的 和 access.log error.log 档案 大小 @ Daiwanbeibai :: 痞 客 邦 PIXNET ::