安装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

相关文章
相关标签/搜索