在httpd.conf配置文件中找到
修改为
重启apache
参考文章:http://hi.baidu.com/wenlongzhao/item/9deb7ab74f981165254b09fe
ErrorLog logs/error_log
CustomLog logs/access_log common
修改为
ErrorLog “| /usr/sbin/rotatelogs /home/logs/www/%Y_%m_%d_error_log 86400 480″
CustomLog “| /usr/sbin/rotatelogs /home/logs/www/%Y_%m_%d_access_log 86400 480″ common
重启apache
参考文章:http://hi.baidu.com/wenlongzhao/item/9deb7ab74f981165254b09fe
本文介绍如何在httpd.conf文件中配置Apache错误日志和访问日志,并使用rotatelogs工具进行日志轮换,最后通过重启Apache服务使配置生效。
254

被折叠的 条评论
为什么被折叠?



