Centos7.4 离线安装httpd(解决rpm依赖)
1、直接下载httpd的rpm安装包到Linux
安装失败,提示需要先解决依赖。
[root@node06 ~]# rpm -ivh httpd-2.4.6-90.el7.centos.x86_64.rpm warning: httpd-2.4.6-90.el7.centos.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY error: Failed dependencies: /etc/mime.types is needed by httpd-2.4.6-90.el7.centos.x86_64 httpd-tools = 2.4.6-90.el7.centos is needed by httpd-2.4.6-90.el7.centos.x86_64 libapr-1.so.0()(64bit) is needed by httpd-2.4.6-90.el7.centos.x86_64 libaprutil-1.so.0()(64bit) is needed by httpd-2.4.6-90.el7.centos.x86_64 [root@node06 ~]#
2、去 https://pkgs.org/ 下载httpd所依赖的7个rpm包
apr-1.4.8-5.el7.x86_64.rpm
apr-util-1.5.2-6.el7.x86_64.rpm
apr-util-ldap-1.5.2-6.el7.x86_64.rpm
postgresql-libs-9.2.24-1.el7_5.x86_64.rpm
mailcap-2.1.41-2.el7.noarch.rpm
httpd-tools-2.4.6-90.el7.centos.x86_64.rpm
httpd-2.4.6-90.el7.centos.x86_64.rpm