ylsunyuan技术论坛

标题: 限制Apache日志access.log以及error.log文件大小 [打印本页]

作者: sun    时间: 2015-6-3 16:05
标题: 限制Apache日志access.log以及error.log文件大小
  1.   #http.conf  每天生成一个文件
  2.    

  3.     #CustomLog "D:/wamp/logs/%Y_%m_%d.access.log" common   原配置
  4.     CustomLog "|D:/wamp/bin/apache/Apache2.2.21/bin/rotatelogs.exe D:/wamp/logs/%Y_%m_%d.access.log 86400 480" common

  5.     #
复制代码







欢迎光临 ylsunyuan技术论坛 (http://bbs.ylsunyuan.com/) Powered by Discuz! X3.2