step 1:增加配置文件 cd /etc/logrotate.d/ touch tomcat vim tomcat step 2:手动执行 /usr/sbin/logrotate /etc/logrotate.conf