yum install ntpd
statsdir /var/log/ntp/
vi /etc/ntp.conf
statsdir /var/log/ntp/
logfile /var/log/ntp/ntp.log
server cn.pool.ntp.org
server time.windows.com
chkconfig ntpd on
SYNC_HWCLOCK=yes
客户端设置:
crontab -e
加入一行
*/15 * * * * /usr/sbin/ntpdate 192.168.100.102(服务器端IP)