简体   繁体   中英

How i configure logrotate to not delete my log files after rotation?

有办法做到这一点?

Set a really large value for the rotate argument in the configuration section.

Even if you use a daily rotation, a value of rotate 365000 would provide for a thousand years of saved logs -- and chances are you may have switched your OS by then.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM