树莓派将 cron 默认日志放在 /var/log/cron

Posted on Posted in raspberry

修改 /etc/rsyslog.conf

cron.*                          /var/log/cron.log  # 取消注释

/etc/init.d/rsyslog restart # 重启
/etc/init.d/cron restart

Leave a Reply

Your email address will not be published. Required fields are marked *

18 + 1 =