I. Preparation of documents
Insert the CD Centos/redhat into the CD-ROM drive, enter the packages directory, or copy the following files to the system you want to install:
(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
Second, start the installation
[Email protected] crontabs]#RPM-IVH procmail-3.22-25.1.el6.x86_64.rpmWarning:procmail-3.22-25.1.el6.x86_64.rpm:header V3 rsa/sha256 Signature, key ID fd431d51:nokeypreparing ... ################################# ########## [100%] 1:procmail ########################################### [100%][[email protected] Crontabs ]#RPM-IVH sendmail-8.14.4-8.el6.x86_64.rpmWarning:sendmail-8.14.4-8.el6.x86_64.rpm:header V3 rsa/sha256 Signature, key I D fd431d51:nokeypreparing ... ################################## ######### [100%] 1:sendmail ########################################### [100%][[email protected] crontabs] #RPM-IVH cronie-1.4.4-12.el6.x86_64.rpmWarning:cronie-1.4.4-12.el6.x86_64.rpm:header V3 rsa/sha256 Signature, key ID Fd431d51:NOKEYerror:Failed Dependencies:dailyjobs is needed by Cronie -1.4.4-12.el6.x86_64[[email protected] crontabs]#RPM-IVH cronie-1.4.4-12.el6.x86_64.rpm--nodepsWarning:cronie-1.4.4-12.el6.x86_64.rpm:header V3 rsa/sha256 Signature, key ID Fd431d51:nokeypreparing ... #################################### ####### [100%] 1:cronie ########################################### [100%][[email protected] crontabs]#RPM-IVH crontabs-1.10-33.el6.noarch.rpmWarning:crontabs-1.10-33.el6.noarch.rpm:header V3 rsa/sha256 Signature, key ID Fd431d51:nokeypreparing ... ################################### ######## [100%] 1:crontabs ########################################### [100%][[email protected] crontabs]#RPM-IVH cronie-anacron-1.4.4-12.el6.x86_64.rpmWarning:cronie-anacron-1.4.4-12.el6.x86_64.rpm:header V3 rsa/sha256 Signature, Key ID fd431d51:nokeypreparing ... ############################ ############### [100%] 1:cronie-anacron ########################################### [100%][[email protected] Cro ntabs]# Crontab-lno crontab for Root[[email protected] crontabs]# Crontab-eno crontab for root-using an empty Onecront Ab:no changes made to Crontab[[email protected] crontabs]# Crontab-eno crontab for root-using an empty onecrontab:ins Talling new crontab//To see if it is booting up
[Email protected] crontabs]# Chkconfig--list | grep croncrond 0:off 1:off 2:on 3:on 4:on 5:on 6:off[[email protected] crontabs]# chkconfig--li St Crondcrond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Iii. expansion of reading
Crontab Configuration
Install the scheduled task program from the Redhat/centos system disk using the RPM command crontab