新建文件 /etc/logrotate.d/tomcat

{
    daily
    missingok
    rotate 180
    compress
    delaycompress
    notifempty
    copytruncate
    create 640 root root
}