Install the scheduled task program from the Redhat/centos system disk using the RPM command crontab

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.