参考:http://space.itpub.net/35489/viewspace-84440
[root@mail ~]# date
Thu Oct 16 14:35:56 CST 2008
[root@mail ~]# ntpdate cn.pool.ntp.org
16 Oct 14:35:14 ntpdate[32463]: the NTP socket is in use, exiting
把ntpd服务停用
[root@mail ~]# service ntpd stop
Shutting down ntpd: [ OK ]
[root@mail ~]# ntpdate cn.pool.ntp.org
17 Oct 16:39:11 ntpdate[32488]: step time server 222.73.214.1 offset 93631.236323 sec
[root@mail ~]# date
Fri Oct 17 16:39:16 CST 2008
我们可以把这个命令放到计划任务里
crontab -e
00 00 * * * ntpdate cn.pool.ntp.org
保存退出,这样每天凌晨零点就可以进行时间同步