利用NTP+crontab实现时间同步 ntp server 编辑配置文件 vi/etc/ntpd.conf server cn.ntp.org.cn server edu.ntp.org.cn

server 127.127.1.0
fudge 127.127.1.0 stratum 10 启动服务并加入开机qidong service ntpd start chkconfig ntpd on

在其他ntp客户端 crontab -e 59 23 * * * /usr/sbin/ntpdate -u 10.1.0.12>>/tmp/time.log

启动crontab并开机启动 service crond start chkconfig crond on