• 用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

    [root@dzyw175 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
    [root@dzyw175 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”选项忽略它。
    [root@dzyw175 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%]
    [root@dzyw175 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%]
    [root@dzyw175 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%]
    [root@dzyw175 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%]

  • 相关阅读:
    C#文件操作常用相关类(Directory类、File类、Path类)
    winform使用相对路径读取文件的方法
    设置GridView不换行强制GridView不换行GridView强制不换行
    VS2010 Visual Studio2010 保护视力 背景色设置颜色设置
    20190306
    20190325
    常用DOS命令
    项目创建
    VS2015自定义工具栏,往工具栏上添加按钮
    ping不通公网ip时路由器设置
  • 原文地址:https://www.cnblogs.com/bingyublog/p/7641517.html
Copyright © 2020-2023  润新知