第 1 章 安装 Directory 服务器软件包

本章介绍安装 Red Hat Directory Server 软件包的信息。

先决条件

  • Red Hat Enterprise Linux(RHEL)安装在服务器上。

    有关您要安装的 Red Hat Directory Server 版本所需的 RHEL 版本的详情,请查看 Red Hat Directory Server 11 发行注记

  • 系统目录服务器注册到红帽订阅管理服务。

    有关使用 Subscription Manager 的详情,请参考 使用和配置 Subscription Manager 指南中的相应的部分。

  • 您的红帽帐户中提供了有效的 Red Hat Directory Server 订阅。
  • 启用 RHEL 默认软件仓库( BaseOSAppStream )。

1.1. 安装 Directory 服务器软件包

使用以下步骤安装 Directory 服务器软件包。

流程

  1. 列出您的红帽帐户中的可用订阅,找到提供 Red Hat Directory Server 的池 ID。例如:

    # subscription-manager list --all --available --matches 'Red Hat Directory Server'
    ...
    Subscription Name:   Example Subscription
    Provides:            ...
                         Red Hat Directory Server
                         ...
    Pool ID:             5ab6a8df96b03fd30aba9a9c58da57a1
    Available:           1
    ...
  2. 使用上一步中的池 ID 将 Red Hat Directory Server 订阅附加到系统:

    # subscription-manager attach --pool=5ab6a8df96b03fd30aba9a9c58da57a1
    Successfully attached a subscription for: Example Subscription
  3. 启用 dirsrv-11-for-rhel-8-x86_64-rpms 存储库:

    # subscription-manager repos --enable=dirsrv-11-for-rhel-8-x86_64-rpms
    Repository 'dirsrv-11-for-rhel-8-x86_64-rpms' is enabled for this system.
  4. 安装 redhat-ds:11 模块:

    # yum module install redhat-ds:11

    这个命令会自动安装所有必需的依赖项。

其他资源