标签:
一、准备文件
将光盘centos/redhat放入光驱,进入Packages目录,或者将以下文件复制到要安装的系统中:
(1/5): cronie-1.4.4-15.el6.x86_64.rpm
(2/5): cronie-anacron-1.4.4-15.el6.x86_64.rpm
(3/5): crontabs-1.10-33.el6.noarch.rpm
(4/5): procmail-3.22-25.1.el6_5.1.x86_64.rpm
(5/5): sendmail-8.14.4-9.el6.x86_64.rpm
二、开始安装
[root@mysql1 crontabs]# rpm -ivh procmail-3.22-25.1.el6.x86_64.rpm warning: procmail-3.22-25.1.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY Preparing... ########################################### [100%] 1:procmail ########################################### [100%] [root@mysql1 crontabs]# rpm -ivh sendmail-8.14.4-8.el6.x86_64.rpm warning: sendmail-8.14.4-8.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key I D fd431d51: NOKEY Preparing... ########################################### [100%] 1:sendmail ########################################### [100%] [root@mysql1 crontabs]# rpm -ivh cronie-1.4.4-12.el6.x86_64.rpm warning: cronie-1.4.4-12.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY error: Failed dependencies: dailyjobs is needed by cronie-1.4.4-12.el6.x86_64 [root@mysql1 crontabs]# rpm -ivh cronie-1.4.4-12.el6.x86_64.rpm --nodeps warning: cronie-1.4.4-12.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY Preparing... ########################################### [100%] 1:cronie ########################################### [100%] [root@mysql1 crontabs]# rpm -ivh crontabs-1.10-33.el6.noarch.rpm warning: crontabs-1.10-33.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY Preparing... ########################################### [100%] 1:crontabs ########################################### [100%] [root@mysql1 crontabs]# rpm -ivh cronie-anacron-1.4.4-12.el6.x86_64.rpm warning: cronie-anacron-1.4.4-12.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY Preparing... ########################################### [100%] 1:cronie-anacron ########################################### [100%] [root@mysql1 crontabs]# crontab -l no crontab for root [root@mysql1 crontabs]# crontab -e no crontab for root - using an empty one crontab: no changes made to crontab [root@mysql1 crontabs]# crontab -e no crontab for root - using an empty one crontab: installing new crontab //查看是否是开机启动
[root@mysql1 crontabs]# chkconfig --list | grep cron crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off [root@mysql1 crontabs]# chkconfig --list crond crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
三、扩展阅读
使用rpm命令从redhat/centos系统盘安装计划任务程序crontab
标签:
原文地址:http://www.cnblogs.com/kuili/p/5117671.html