Mac 日志轮转
摘要:背景 我在macmini上安装了wireguard服务,将日志输出到了 /var/log/wireguard.log。为了防止日志无限制增大,采用logrotate的方式来处理日志。 规则:最大允许100MB。每小时检查一次。 #安装logrotate brew install logrotate
阅读全文
posted @ 2025-05-06 10:40
posted @ 2025-05-06 10:40
posted @ 2025-05-06 10:20
posted @ 2025-02-09 22:03