Advertisement

定时任务未被触发

阅读量:
在这里插入图片描述

排查思路:

1、查看/etc/cron.deny
复制代码
    ##此文件是空的
    cat /etc/cron.deny

仅配置了 cron.deny 文件。然而该 cron 分配表无内容设定,在这种情况下并无启用权限设置。(若有 cron.allow 文件则该 cron 分配表将优先启用 cron.allow 权限设定;若有 both krondply allow and kron_deny files 存在则前者会占据优势;如仅有 kron_deny file 则该 file 将被采用作为启用依据)

2、查看crontab命令权限
复制代码
    ll /usr/bin/crontab
在这里插入图片描述

缺少S权限,添加

复制代码
    chmod +s /usr/bin/crontab

全部评论 (0)

还没有任何评论哟~