logrotate 是一个 Bash 的 SHELL 脚本,可对日志文件进行切分,并将切分后的日志放在统一目录。
logrotate 要求 GNU bash, GNU gzip and GNU date.