【问题标题】:How to implement http2 (h2) in CentOs Server with Apache 2.4.23?如何使用 Apache 2.4.23 在 CentOs Server 中实现 http2 (h2)?
【发布时间】:2016-12-15 06:26:20
【问题描述】:

我尝试在 CentOS7 x64 服务器上安装支持 http2 的 apache-2.4.23。但是还没有 rpm repo 支持它,所以我从源代码构建并安装并安装到 /usr/local/apache2。但是因为,我使用的是 virtualmin5.0.4,所以我需要它与它兼容。那么,如果从 EPEL 等 repo 安装,我该如何将它安装在安装位置。

【问题讨论】:

    标签: apache rpm http2 virtualmin epel


    【解决方案1】:

    您可以将安装位置设置为配置脚本的--prefix 选项。

    【讨论】:

      【解决方案2】:

      我会尝试从 Fedora 获取源 RPM 并执行 rpmbuild --rebuild apache.src.rpm。然后,您可以更新您拥有的 RPM,而不是混合基于 RPM 的安装和手动安装的文件。然后其他 RPM 会知道您已经安装了它并且位于默认位置。

      【讨论】:

      • 你能给我链接以获取版本 2.4.23 的 apache.src.rpm 文件吗?@aaron-d-marasco
      • 我现在收到此错误。构建依赖项失败:httpd-2.4.23-4.el7.centos.x86_64 需要 apr-devel >= 1.5.0
      • 使用 CentOS 时欢迎来到依赖地狱……你还需要构建 apr 库。
      猜你喜欢
      • 2016-06-30
      • 2018-10-25
      • 2019-11-21
      • 2021-07-07
      • 2021-08-21
      • 2017-03-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多