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

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值