centos 同步时间,修改时区

in linux with 0 comment
yum -y install ntp ntpdate
rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Chongqing /etc/localtime
ntpdate -u pool.ntp.org

一台服务器单纯通过ntpdate time.windows.com 同步时间,始终不能更新到最新时间,有一种情况就是系统时区问题。如上修改时区,重新同步即可。

Responses