使用rpm命令從redhat/centos系統硬碟安裝計劃任務程式crontab

來源:互聯網
上載者:User

標籤:

一、準備檔案

將光碟片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

二、開始安裝

[[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] crontabs]# crontab -lno crontab for root[[email protected] crontabs]# crontab -eno crontab for root - using an empty onecrontab: no changes made to crontab[[email protected] crontabs]# crontab -eno crontab for root - using an empty onecrontab: installing new crontab//查看是否是開機啟動
[[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 --list crondcrond 0:off 1:off 2:on 3:on 4:on 5:on 6:off

 三、擴充閱讀

crontab配置

使用rpm命令從redhat/centos系統硬碟安裝計劃任務程式crontab

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.