Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我查看了手册页,在这里搜索,谷歌搜索等。
有谁知道 logrotate 使用的默认大小?
您可以引用哪些参考来说明默认大小?
我知道我可以在我的配置文件中专门设置大小。
没有默认大小,因为它是可选标志。logrotate 将根据您提供的某些标准进行轮换,例如文件大小或时间段(daily,weekly等)。所以这并不是说它有一个默认的文件大小(除了类似的东西size 0),它只是不是旋转文件的先决条件。
daily
weekly
size 0
据我所知,logrotate 没有默认大小,不需要在这上面浪费时间,在配置文件中自己设置值。