一、监控时间:
watch date
二、NTP配置
1、查看时间
ntpdate -q 192.168.192.3
ntpdate 192.168.192.3
2、配置时间服务器
vi /etc/ntp.conf
server 192.168.192.3 iburst
3、设置时间不允许回调
vi /etc/sysconfig/ntpd
OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid -g"
修改为
OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid -g"
4、重启
service ntpd restart
chkconfig ntpd on
5、检查
ntpstat
ntpstat -q
watch date