搜索

7.3. 准备并填充存储库服务器

download PDF

在安装过程中,以及将来的更新,您需要一个 webserver 来托管软件。RHEL 7 可以提供 Apache webserver。

  1. 准备 webserver:

    1. 如果您需要在断开连接的环境中安装一个新的 webserver,在您的 LAN 中安装至少1 10 GB 空间的新 RHEL 7 系统。在 RHEL 安装过程中,选择 Basic Web Server 选项。
    2. 如果要重新使用下载 OpenShift Container Platform 软件和所需镜像的服务器,请在服务器上安装 Apache:

      $ sudo yum install httpd
  2. 将存储库文件放在 Apache 的根目录中。

    • 如果您要重新使用服务器:

      $ mv /path/to/repos /var/www/html/
      $ chmod -R +r /var/www/html/repos
      $ restorecon -vR /var/www/html
    • 如果您安装了一个新的服务器,附加外部存储,然后复制文件:

      $ cp -a /path/to/repos /var/www/html/
      $ chmod -R +r /var/www/html/repos
      $ restorecon -vR /var/www/html
  3. 添加防火墙规则:

    $ sudo firewall-cmd --permanent --add-service=http
    $ sudo firewall-cmd --reload
  4. 启用并启动 Apache 以使更改生效:

    $ systemctl enable httpd
    $ systemctl start httpd
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.