http://blog.chinaunix.net/uid-16362696-id-3472265.html
[root@localhost logrotate.d]# cat message /var/log/messages { daily dateext copytruncate nocompress rotate 15 } [root@localhost logrotate.d]# pwd /etc/logrotate.d
日志切换:
[root@localhost logrotate.d]# logrotate -f /etc/logrotate.d/message