centos6.9 同步校正系统时间
使用date发现时间慢了半个钟
使用 hwclock --show 查看硬件时间,发现是正确的
手动校正:
1.ntpdate pool.ntp.org # 国际通用服务器
2.hwclock --systohc # 将系统时间写入硬件时间
ps:如果没有ntpdate 就安装一下,yum install -y ntpdate
纯属记录程序人生,如有差错,欢迎指正,轻喷
使用date发现时间慢了半个钟
使用 hwclock --show 查看硬件时间,发现是正确的
手动校正:
1.ntpdate pool.ntp.org # 国际通用服务器
2.hwclock --systohc # 将系统时间写入硬件时间
ps:如果没有ntpdate 就安装一下,yum install -y ntpdate