cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
# sysrc ntpd_enable="YES"
# sysrc ntpd_sync_on_start="YES"
ntp.conf文件
# vim /etc/ntp.conf
server time.windows.com server 0.cn.pool.ntp.org server 1.cn.pool.ntp.org server 2.cn.pool.ntp.org server 3.cn.pool.ntp.org
# /etc/rc.d/ntpd enable
或
# service ntpd enable
# /etc/rc.d/ntpd start
或
# service ntpd start
# /etc/rc.d/ntpd restart
或
# service ntpd restart
# date
# ntpdate time.windows.com