Linux日志切割
/etc/logrotate.d
/var/log/tima/*_console.log {
copytruncate
daily
compress
rotate 10
missingok
size 200M
dateext
ifempty
#endscript
}
/var/log/tima/catalina*.out {
copytruncate
weekly
rotate 90
compress
missingok
size 200M
}
/var/log/tima/*.log {
copytruncate
daily
compress
rotate 5
missingok
size 200M
dateext
ifempty
}