centos下yum安装apache日志文件过大的问题

centos下yum安装apache日志文件过大的问题
修改httpd文件
vim /etc/httpd/conf/httpd.conf

ErrorLog logs/error_log
CustomLog logs/access_log common
将其改为 
ErrorLog "| /usr/local/apache/bin/rotatelogs /data/www/apache_logs/error_%Y%m%d.log 86400 480"
CustomLog "| /usr/local/apache/bin/rotatelogs /data/www/apache_logs/access_%Y%m%d.log 86400 480" common

你可能感兴趣的:(centos下yum安装apache日志文件过大的问题)