1. 程式人生 > >centos6.8時間設置與同步

centos6.8時間設置與同步

linux 系統設置

[[email protected] ~]# rm /etc/localtime

[[email protected] ~]# ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

[[email protected] ~]# date

Thu Sep 14 08:54:32 CST 2017

[[email protected] ~]# yum install -y ntpdate

[[email protected] ~]# ntpdate time.nist.gov

14 Sep 15:59:43 ntpdate[1563]: step time server 129.6.15.30 offset 25042.106941 sec

[[email protected] ~]# date

Thu Sep 14 15:59:46 CST 2017


centos6.8時間設置與同步