CentOS NTP时间同步设置

  1. cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
  2. yum -y install ntp
  3. ntpdate  cn.pool.ntp.org
  4. service ntpd start
  5. chkconfig ntpd on