网站越运行越慢,请求TTFB时间长,瞅瞅你的网站log是不是太大了!

日志一般位置

/data/wwwlogs
/usr/local/apache/logs

apache日志太大按天分割

#ErrorLog "logs/error_log"
ErrorLog "| /usr/local/apache/bin/rotatelogs /usr/local/apache/logs/error_%Y%m%d.log 86400 480"

#CustomLog "logs/access_log" common
CustomLog "| /usr/local/apache/bin/rotatelogs /usr/local/apache/logs/access_%Y%m%d.log 86400 480" common

发表评论

电子邮件地址不会被公开。

This site uses Akismet to reduce spam. Learn how your comment data is processed.