[root@bogon ~]# rm /etc/localtime
[root@bogon ~]# ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
[root@bogon ~]# date
Thu Sep 14 08:54:32 CST 2017
[root@bogon ~]# yum install -y ntpdate
[root@bogon ~]# ntpdate time.nist.gov
14 Sep 15:59:43 ntpdate[1563]: step time server 129.6.15.30 offset 25042.106941 sec
[root@bogon ~]# date
Thu Sep 14 15:59:46 CST 2017
原文链接:https://www.f2er.com/centos/375887.html