简体   繁体   English

如何配置logrotate以在轮换后不删除我的日志文件?

[英]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. 在配置部分为rotate参数设置一个非常大的值。

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. 即使您使用每日轮换, rotate 365000的值也会提供一年的保存日志 - 并且您可能已经切换了操作系统。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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