日常运维中,经常要对各类日志进行管理,清理,监控,尤其是因为应用bug,在1小时内就能写几十个G日志,导致磁盘爆满,系统挂掉. nohup.out,access.log,catalina.out 本文简单介绍利用Linux自带的logrotate来对操作系统中各类日志进行管理. 1.logrotate简介 The logrotate utility is designed to simplify the administration of log files on a system which…