linix定时任务不执行的原因

linux执行定时任务:

  1. 是否安装crontab;
    [[email protected] mysql_bak]# crontab
    -bash: crontab: command not found
    证明没有安装,执行# yum -y install vixie-cron

linux执行定时任务
3. 可执行文件是都正确;
4. 编辑定时任务# crontab -e
0 1,13 * * * /data/mysql_bak/bkpangu.sh //每天1点13点执行文件
5. 安装了crontab之后,是否启用cron
6. 查看状态# /etc/init.d/crond status
7. 重启服务# /etc/init.d/crond restart
linux执行定时任务

相关文章:

  • 2022-12-23
  • 2021-11-12
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-08
  • 2022-12-23
  • 2021-12-23
相关资源
相似解决方案