2.5. 使用 chronyd 同步系统时钟

要最大程度降低时间偏移的影响,您必须在要在其上使用网络时间协议(NTP)服务器安装胶囊式服务器的基本操作系统上同步系统时钟。如果正确配置了基础操作系统时钟,证书验证可能会失败。

有关 chrony 套件的更多信息,请参阅 Red Hat Enterprise Linux 8 系统管理员指南中的 使用 Chrony 套件 配置 NTP,以及 Red Hat Enterprise Linux 7 系统管理员指南中的 使用 chrony 套件 配置 NTP。

流程

  1. 安装 chrony 软件包:

    # yum install chrony
  2. 启动并启用 chronyd 服务:

    # systemctl start chronyd
    # systemctl enable chronyd