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

/tomcat/logs/catalina.out
{
    daily
    missingok
    rotate 180
    compress
    delaycompress
    notifempty
    copytruncate
    create 640 root root
}

发表评论

电子邮件地址不会被公开。 必填项已用*标注

This site uses Akismet to reduce spam. Learn how your comment data is processed.