centos6.9 同步校正系统时间

使用date发现时间慢了半个钟

使用 hwclock --show 查看硬件时间,发现是正确的

 

手动校正:

1.ntpdate pool.ntp.org     # 国际通用服务器

2.hwclock --systohc        # 将系统时间写入硬件时间

 

ps:如果没有ntpdate 就安装一下,yum install -y ntpdate

 

posted @ 2025-03-28 15:01  乐swap火  阅读(41)  评论(1)    收藏  举报