rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
a. yum -y install ntpdate ntp #安装ntp
b. 设置定时同步计划任务
00 00 * * * ntpdate ntp.sjtu.edu.cn #上海交通大学网络中心NTP服务器地址
PS:常用的时间同步服务器参考http://www.minunix.com/2013/03/ntpserver/
crotab执行的日志文件位置一般在/var/spool/cron/下
原文:http://www.cnblogs.com/lorryrui/p/5650707.html