Apache日志按天切割
Linux系统配置方法:
将其改为
ErrorLog "| /usr/local/apache/bin/rotatelogs /home/logs/www/error_%Y%m%d.log 86400 480"
CustomLog "| /usr/local/apache/bin/rotatelogs /home/logs/www/access_%Y%m%d.log 86400 480" common
Windows系统下配置方法:
ErrorLog "|c:/apache/bin/rotatelogs.exe logs/error_%Y%m%d.log 86400 480"
CustomLog "|c:/apache/bin/rotatelogs.exe logs/_%Y%m%d.log 86400 480" common
86400 表示一天的秒数
本文来自博客园,作者:huiy_小溪,转载请注明原文链接:https://www.cnblogs.com/huiy/p/6215972.html