作者在 2019-06-03 17:46:14 发布以下内容
vi /etc/logrotate.d/down.bccn.net
su root list
missingok
notifempty
compress
olddir /var/sitepath/log/access/
daily
copytruncate
rotate 30
}
/var/sitepath/log/error.log{
su root list
missingok
notifempty
compress
olddir /var/sitepath/log/error/
daily
copytruncate
rotate 30
}