cd /var/log/httpd
ls -lS | less
如果任何文件大约2-3次(或更多),那么很可能是,这就是问题所在。
解决方案是删除日志,重新启动Apache,然后实施预防性措施。
1)
cd /var/log/httpd/
rm -f error_log
rm -f access_log
rm -f suexec_log
rm -f fpexec_log
/sbin/service httpd restart ("/usr/local/etc/rc.d httpd restart" for FreeBSD)
2)获得logrota每日轮换
perl -pi -e 's/weekly/daily/' /etc/logrotate.conf
perl -pi -e 's/rotate 4/rotate 2/' /etc/logrotate.conf
If apache still doesn't start, check /var/log/messages and try recompiling apache.











