CentOS系统时间与网络同步

新装的CentOS系统server可能设置了错误的,须要调整时区并调整时间.例如以下是CentOS系统使用NTP来从一个时间server同步:

    第一步: 把当前时区调整为上海就是+8区,想改其它时区也能够去看看/usr/share/zoneinfo文件夹;  

             cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime  

   第二步:利用ntpdate同步标准时间

            ntpdate us.pool.ntp.org

注:没有安装ntpdate的能够yum一下:  yum install -y ntpdate
原文地址:https://www.cnblogs.com/jhcelue/p/6791193.html