Linux施行按时使命时报错-bash:crontab:command怎样办

相关游戏 相关文章 发表评论字体大小:【 | |

作者:佚名 2020-01-03 来源:本站整理    浏览:57     评论:0 条

  Linux体系高停止按时使命操做时,忽然提示bash: crontab: co妹妹and not found,呈现该答题多半是已装置crontab所招致,只需正在Linux体系高装置crontab便可处理答题。

Linux施行按时使命时报错-bash:crontab:command怎样办

  crontab装置步调:

  1. 确认crontab能否装置:

  执止 crontab 号令若是报 co妹妹and not found,便表白出有装置

  2. 装置 crontab

  装置历程以下

  [root@10vps ~]# crontab -e

  -bash: crontab: co妹妹and not found

  [root@10vps ~]# yum install -y vixie-cron

  Loaded plugins: fastestmirror, security

  Determining fastest mirrors

  * rpmforge: ftp.riken.jp

  base | 3.7 kB 00:00

  extras | 3.4 kB 00:00

  rpmforge | 1.9 kB 00:00

  rpmforge/primary_db | 2.7 MB 00:02

  updates | 3.4 kB 00:00

  updates/primary_db | 3.2 MB 00:13

  Setting up Install Process

  Resolving Dependencies

  --》 Running transaction check

  ---》 Package cronie.x86_64 0:1.4.4-12.el6 will be installed

  --》 Processing Dependency: dailyjobs for package: cronie-1.4.4-12.el6.x86_64

  --》 Running transaction check

  ---》 Package cronie-anacron.x86_64 0:1.4.4-12.el6 will be installed

  --》 Processing Dependency: crontabs for package: cronie-anacron-1.4.4-12.el6.x86_64

  --》 Running transaction check

  ---》 Package crontabs.noarch 0:1.10-33.el6 will be installed

  --》 Finished Dependency Resolution

  Dependencies Resolved

  ================================================================================

  Package Arch Version Repository Size

  ================================================================================

  Installing:

  cronie x86_64 1.4.4-12.el6 base 73 k

  Installing for dependencies:

  cronie-anacron x86_64 1.4.4-12.el6 base 30 k

  crontabs noarch 1.10-33.el6 base 10 k

  Transaction Su妹妹ary

  ================================================================================

  Install 3 Package(s)

  Total download size: 114 k

  Installed size: 220 k

  Downloading Packages:

  (1/3): cronie-1.4.4-12.el6.x86_64.rpm | 73 kB 00:00

  (2/3): cronie-anacron-1.4.4-12.el6.x86_64.rpm | 30 kB 00:00

  (3/3): crontabs-1.10-33.el6.noarch.rpm | 10 kB 00:00

  --------------------------------------------------------------------------------

  Total 15 kB/s | 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:co妹妹and not found报错。

这些是你想要的吗?

相关游戏

网友评论

评论需审核后才能显示