CentOS: tail -f /var/log/cron
Ubuntu: tail -f /var/log/cron.log
注:Ubuntu 默认没有开启cron log.
在/etc/rsyslog.d/50-default.conf文件中取消#cron.* /var/log/cron.log注释符号#, 并重启rsyslog
sudo service rsyslog restart
CentOS: tail -f /var/log/cron
Ubuntu: tail -f /var/log/cron.log
注:Ubuntu 默认没有开启cron log.
在/etc/rsyslog.d/50-default.conf文件中取消#cron.* /var/log/cron.log注释符号#, 并重启rsyslog
sudo service rsyslog restart
“查看crontab日志”上的一条回复
Nice post. I learn something totally new and challenging on sites I stumbleupon on a daily basis. It will always be useful to read content from other writers and practice something from other web sites.