3.2. 手动将主机注册到 Red Hat Satellite


使用以下步骤手动将主机注册到 Red Hat Satellite 6。

前提条件

  • Satellite 服务器、任何 Capsule 服务器和所有主机都必须与同一 NTP 服务器同步,并且启用了和运行时间同步工具。
  • 守护进程 rhsmcertd 必须运行在主机上运行。
  • 主机必须有一个激活码。如需更多信息,请参阅内容管理指南中的管理激活码。
  • Subscription Manager 需要是 1.10 或更高版本。软件包位于标准 Red Hat Enterprise Linux 软件仓库中。

流程

Red Hat Enterprise Linux 主机默认注册到 Red Hat Content Delivery Network。

更新每个主机配置,以便它们从正确的 Satellite 服务器或 Capsule 服务器接收更新:

  1. 请注意 Satellite 服务器或 Capsule 服务器的完全限定域名(FQDN),如 server.example.com。
  2. 以 root 用户身份登录主机,并从要注册到主机的 Satellite 服务器或 Capsule 服务器下载 katello-ca-consumer-latest.noarch.rpm 软件包。消费者 RPM 配置主机以从 Red Hat Satellite 中指定的内容源下载内容。

    # curl --insecure --output katello-ca-consumer-latest.noarch.rpm https://satellite.example.com/pub/katello-ca-consumer-latest.noarch.rpm
  3. 安装 katello-ca-consumer-latest.noarch.rpm 软件包:

    # yum localinstall katello-ca-consumer-latest.noarch.rpm
    注意

    RPM 软件包没有签名。如果需要,您可以添加 --nosignature 选项来安装软件包。katello-ca-consumer-hostname-1.0-1.noarch.rpm 软件包是包含服务器主机名的额外 katello-ca-consumer RPM。katello-ca-consumer-latest.noarch.rpm 软件包始终反映最新版本。这两者都满足同样目的。

  4. 清除与 Red Hat Subscription Manager (RHSM)相关的任何旧主机数据:

    # subscription-manager clean
  5. 使用 RHSM 注册主机:

    # subscription-manager register --org=your_org_name \
    --activationkey=your_activation_key

    例 3.1. 注册后命令输出:

    # subscription-manager register --org=MyOrg --activationkey=TestKey-1
    The system has been registered with id: 62edc0f8-855b-4184-b1b8-72a9dc793b96
注意

您可以使用 --environment 选项覆盖激活码定义的内容视图和执行环境。例如,要在"开发"生命周期阶段的内容视图"MyView"中注册主机:

 # subscription-manager register --org=your_org_name \
 --environment=Development/MyView \
 --activationkey=your_activation_key
注意

对于 Red Hat Enterprise Linux 6.3 主机,发行版本默认为 Red Hat Enterprise Linux 6 服务器,需要指向 6.3 存储库:

  1. 在 Satellite Web UI 中,导航到 Hosts > Content Hosts。
  2. 选中需要更改的主机旁边的复选框。
  3. 从 Select Action 列表中,选择 Set Release Version。
  4. 从 Release Version 列表中,选择 6.3。
  5. 点 Done。
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

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

让开源更具包容性

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

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部