cat /etc/logrotate.d/tomcat #设置需要切割的tomcat日志
/docker/wethink-core/logs/catalina.out { #日志存放位置
Daily #每日切割一次
copytruncate
rotate 30 #只保留30天内的备份
compress
notifempty
dateext
missingok
}
cat /etc/logrotate.d/tomcat #设置需要切割的tomcat日志
/docker/wethink-core/logs/catalina.out { #日志存放位置
Daily #每日切割一次
copytruncate
rotate 30 #只保留30天内的备份
compress
notifempty
dateext
missingok
}