用rpm命令安装定时器crontab

Posted 冰御by

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了用rpm命令安装定时器crontab相关的知识,希望对你有一定的参考价值。

crontab -l  command not found

准备以下安装包:

 ls -l
总用量 1004
-rw-r--r-- 1 root root  76296 10月  9 16:01 cronie-1.4.4-16.el6_8.2.x86_64.rpm
-rw-r--r-- 1 root root  31928 10月  9 16:01 cronie-anacron-1.4.4-16.el6_8.2.x86_64.rpm
-rw-r--r-- 1 root root  10612 10月  9 16:01 crontabs-1.10-33.el6.noarch.rpm
-rw-r--r-- 1 root root 166196 10月  9 16:01 procmail-3.22-25.1.el6_5.1.x86_64.rpm
-rw-r--r-- 1 root root 733816 10月  9 16:01 sendmail-8.14.4-9.el6_8.1.x86_64.rpm

[[email protected] cronb]# rpm -ivh procmail-3.22-25.1.el6_5.1.x86_64.rpm
warning: procmail-3.22-25.1.el6_5.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
        file /usr/bin/formail from install of procmail-3.22-25.1.el6_5.1.x86_64 conflicts with file from package procmail-3.22-25.1.el6.x86_64
        file /usr/bin/lockfile from install of procmail-3.22-25.1.el6_5.1.x86_64 conflicts with file from package procmail-3.22-25.1.el6.x86_64
        file /usr/bin/procmail from install of procmail-3.22-25.1.el6_5.1.x86_64 conflicts with file from package procmail-3.22-25.1.el6.x86_64
[[email protected] cronb]# rpm -ivh sendmail-8.14.4-9.el6_8.1.x86_64.rpm
warning: sendmail-8.14.4-9.el6_8.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
error: Failed dependencies:
        libcrypto.so.10(OPENSSL_1.0.1)(64bit) is needed by sendmail-8.14.4-9.el6_8.1.x86_64
        libcrypto.so.10(libcrypto.so.10)(64bit) is needed by sendmail-8.14.4-9.el6_8.1.x86_64
        libssl.so.10(libssl.so.10)(64bit) is needed by sendmail-8.14.4-9.el6_8.1.x86_64

缺失依赖关系,经过测试可以直接使用“–nodeps”选项忽略它。
[[email protected] cronb]# rpm -ivh sendmail-8.14.4-9.el6_8.1.x86_64.rpm --nodeps
warning: sendmail-8.14.4-9.el6_8.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:sendmail               ########################################### [100%]
[[email protected] cronb]# rpm -ivh cronie-1.4.4-16.el6_8.2.x86_64.rpm  --nodeps
warning: cronie-1.4.4-16.el6_8.2.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:cronie                 ########################################### [100%]
[[email protected] cronb]# rpm -ivh crontabs-1.10-33.el6.noarch.rpm --nodeps
warning: crontabs-1.10-33.el6.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:crontabs               ########################################### [100%]
[[email protected] cronb]# rpm -ivh cronie-anacron-1.4.4-16.el6_8.2.x86_64.rpm --nodeps
warning: cronie-anacron-1.4.4-16.el6_8.2.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:cronie-anacron         ########################################### [100%]

 

以上是关于用rpm命令安装定时器crontab的主要内容,如果未能解决你的问题,请参考以下文章

Linux crontab定时执行任务 命令格式与详细例子

centos 8利用crontab设置定时任务,crontab每秒运行

django-crontab定时任务

crontab---定时任务

crontab命令

如何使用Linux的Crontab定时执行PHP脚本的方法