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 表示一天的秒数

相关文章:

  • 2021-07-13
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
猜你喜欢
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-27
  • 2022-12-23
  • 2021-06-16
  • 2022-12-23
相关资源
相似解决方案