Linux定时任务Crontab不起作用的排查步骤

1 crontab -e编辑定时任务

2 查看状态

    /sbin/service croned status
    /sbin/service croned stop
    /sbin/service croned start /sbin/service croned restart

3 运行root用户执行定时任务

/etc/cron.deny内容

4 查询日志

cat /var/log/cron