安裝nginx報錯systemd is needed by nginx-1:1.14.0-1.el7_4.ngx.x86_64

安裝nginx報錯systemd is needed by nginx-1:1.14.0-1.el7_4.ngx.x86_64html

[nginx@crmint-tp01 ~]$ sudo rpm -ivh nginx-1.14.0-1.el7_4.ngx.x86_64.rpm
warning: nginx-1.14.0-1.el7_4.ngx.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 7bd9bf62: NOKEY
error: Failed dependencies:
        libcrypto.so.10(OPENSSL_1.0.2)(64bit) is needed by nginx-1:1.14.0-1.el7_4.ngx.x86_64
        libpcre.so.1()(64bit) is needed by nginx-1:1.14.0-1.el7_4.ngx.x86_64
        openssl >= 1.0.2 is needed by nginx-1:1.14.0-1.el7_4.ngx.x86_64
        systemd is needed by nginx-1:1.14.0-1.el7_4.ngx.x86_64
[nginx@crmint-tp01 ~]$ rpm -ivh nginx-1.12.1-1.el7.ngx.x86_64.rpm 
warning: nginx-1.12.1-1.el7.ngx.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 7bd9bf62: NOKEY
error: Failed dependencies:
        libpcre.so.1()(64bit) is needed by nginx-1:1.12.1-1.el7.ngx.x86_64
        systemd is needed by nginx-1:1.12.1-1.el7.ngx.x86_64

少了openssl 少了libcryptonginx

CentOS6採用了upstart技術代替sysVinit進行引導,Upstart對rc.sysinit腳本作了大量的優化,縮短了系統初始化的啓動時間。可是CentOS6爲了簡便管理員的操做,upstart的不少特性並無凸顯或直接不支持。 表明系統:CentOS6, Ubuntu14, 從CentOS7, Ubuntu15開始使用systemd http://www.javashuo.com/article/p-qanbzpyg-ct.html緩存

運行 yum makecache生成緩存,yum makecache主要目的是將服務器上的軟件包信息在本地緩存,以提升搜索安裝軟件的速度 https://blog.csdn.net/lcj200813138020/article/details/46914161服務器

yum list glibc* http://raksmart.idcspy.com/781優化

RHEL是Red Hat Enterprise Linux的縮寫.net

成功了!解決: 不用nginx-1.14.0-1.el7_4.ngx.x86_64.rpm, 而用nginx-1.14.1-1.el6.ngx.x86_64.rpm。code

相關文章
相關標籤/搜索