23 Dec 2016
yum install ntp -y
vim /etc/ntp.conf ****************************************************** # 配置时间服务器 server 10.8.0.1 iburst ****************************************************** # 配置服务参数-x,来防止ntp服务同步的时间被回退 vim /etc/sysconfig/ntpd ****************************************************** # 增加-x OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid -g" ******************************************************
service ntpd restart chkconfig ntpd on
ntpstat synchronised to NTP server (10.8.0.1) at stratum 3 time correct to within 27926 ms polling server every 64 s ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== *10.8.0.1 17.253.84.125 2 u 34 64 3 0.924 -19943. 10.250