我在进行设置时遇到了问题
logrotate.conf
我已经完成了一次设置,但它没有相应地工作。
主要条件是每隔 5 天循环压缩日志文件
/var/log/humble/access.log
{
daily
copytruncate
rotate 5
create 755 humble humble
dateext
compress
include /etc/logrotate.d/humble/
}
即使在这样做之后,几天后压缩也会停止。