Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 ntpdate 命令对 2 个 Centos VM 进行时间同步,但它不起作用。
运行 ntpdate 命令 ( ntpdate reference.time.machine) 时,它显示一个偏移量:step time server 10.0.0.116 offset 156.479697 sec
ntpdate reference.time.machine
但是当我运行“日期”命令时,它仍然显示没有更正的时间。
任何想法 ?
谢谢。
西尔万。
我想我发现了问题:
我编辑了文件 /etc/sysconfig/ntpd 以添加以下行:
SYNC_HWCLOCK=yes
从那时起,它似乎奏效了。