Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

19.14. 检查 NTP 的状态

要检查 ntpd 是否在系统启动时运行并配置为在系统启动时运行,请运行以下命令:

~]$ systemctl status ntpd

要从 ntpd 获取简短状态报告,请运行以下命令:

~]$ ntpstat
unsynchronised
 time server re-starting
  polling server every 64 s
~]$ ntpstat
synchronised to NTP server (10.5.26.10) at stratum 2
  time correct to within 52 ms
  polling server every 1024 s