首页/系统工具/内容

Linux执行定时任务时报错-bash:crontab:command怎样办?

系统工具2024-01-08 阅读()
114 kB 00:07

  Running rpm_check_debug

  Running Transaction Test

  Transaction Test Succeeded

  Running Transaction

  Installing : cronie-1.4.4-12.el6.x86_64 1/3

  Installing : crontabs-1.10-33.el6.noarch 2/3

  Installing : cronie-anacron-1.4.4-12.el6.x86_64 3/3

  Verifying : crontabs-1.10-33.el6.noarch 1/3

  Verifying : cronie-anacron-1.4.4-12.el6.x86_64 2/3

  Verifying : cronie-1.4.4-12.el6.x86_64 3/3

  Installed:

  cronie.x86_64 0:1.4.4-12.el6

  Dependency Installed:

  cronie-anacron.x86_64 0:1.4.4-12.el6 crontabs.noarch 0:1.10-33.el6

  Complete!

  [root@10vps ~]# crontab -l

  no crontab for root

  3. 确认是否安装成功:

  执行 crontab -l

  4. 看是否设置了开机自动启动

  chkconfig --list crond

  5. 启动crontab

  service crond start

  上面就是Linux执行定时任务报错需安装crontab的方法介绍了,该方法适用于绝大多数bash:crontab:command not found报错。


Linux是一套免费使用和自由传播的类Unix操作系统



第1页  第2页  第3页  第4页  第5页  第6页  第7页  第8页  第9页  第10页  第11页 

……

相关阅读