Logrotate 用于 rotate 日志文件。它的配置文件位于 /etc/logrotate.d/。 Debug 模式(dryrun): sudo logrotate --debug /etc/logrotate.conf 参见 Logrotate