安装nginx报错systemd is needed by nginx-1:1.14.0-1.el7_4.ngx.x86_64

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

安装nginx报错systemd is needed by nginx-1:1.14.0-1.el7_4.ngx.x86_64

[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 少了libcrypto

CentOS6采用了upstart技术代替sysVinit进行引导,Upstart对rc.sysinit脚本做了大量的优化,缩短了系统初始化的启动时间。但是CentOS6为了简便管理员的操作,upstart的很多特性并没有凸显或直接不支持。 代表系统:CentOS6, Ubuntu14, 从CentOS7, Ubuntu15开始使用systemd https://www.cnblogs.com/Csir/p/6746667.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的缩写

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

转载于:https://my.oschina.net/u/2464371/blog/2877944

你可能感兴趣的:(安装nginx报错systemd is needed by nginx-1:1.14.0-1.el7_4.ngx.x86_64)