linux debian查看crontab日志

debian的系统crontab日志需要手动开启,

找到目录 /etc/rsyslog.conf,

去掉关于cron那一行的注释,把#去掉,

# cron.*                          /var/log/cron.log

重启debian系统的log服务,

/etc/init.d/rsyslog restart

参考:

https://yesnotes.wordpress.com/2013/05/11/debian-crontab-opening-logging/

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注




Enter Captcha Here :