[root@localhost ~]# ntpdate pool.ntp.org
22 Jan 02:05:13 ntpdate[15078]: step time server 67.18.208.203 offset -43140.643826 sec
[root@localhost ~]# ntpdate pool.ntp.org
22 Jan 02:05:26 ntpdate[15092]: adjust time server 67.18.208.203 offset 0.000080 sec
开机自启动ntpd:
chkconfig ntpd on
配置ntp服务器:
vim /etc/ntp.conf
添加服务器,理论上地理位置靠得近的,误差会更小一些:
server 1.cn.pool.ntp.org
server 1.asia.pool.ntp.org
server 3.asia.pool.ntp.org
开机自启动ntpd:
配置ntp服务器:
添加服务器,理论上地理位置靠得近的,误差会更小一些: