使用 logrotate 配置 supervisor 進行日誌管理按天備份

supervisor 默認的日誌備份策略是按大小備份,常常不知道去哪一個文件查日誌的煩惱。本文經過設置 logrotate 來進行日誌安排備份html logrotate 的配置文件默認存放在 /etc/logrotate.d 下。新建一個文件linux vim /etc/logrotate.d/log-file /var/log/supervisor/log_file*.log { da
相關文章
相關標籤/搜索