第 16 章 创建远程仓库

按照以下步骤,使用包含 DVD ISO 镜像内容的远程仓库为基于网络的安装创建安装源。可通过 HTTP 或 HTTPS 访问该安装源。

先决条件

  • 您有一个 Red Hat Enterprise Linux 8 安装 DVD/ISO 镜像。
  • 您有多个运行 Red Hat Enterprise Linux 的服务器。

16.1. 在 RHEL 上安装 Apache

这个流程将帮助您在 Red Hat Enterprise Linux 8 上安装 Apache。

先决条件

  • 您可以使用 Apache webserver 访问存储库。

流程

  1. 安装 httpd 软件包

    # yum install httpd
  2. 运行,然后启用 Apache webserver。这些命令也会在重启后启动 webserver。

    # systemctl enable httpd
    # systemctl start httpd
  3. 插入任何您可能拥有的网页文件。

    # echo Apache on RHEL {ProductNumber} > /var/www/html/index.html
  4. 更新防火墙。

    # firewall-cmd --add-service=http --permanent
    # firewall-cmd --add-service=http
  5. 访问网站。

    http://<the-apache-ip-address>
    
    http://<the-apache-hostname>