安装NTPD服务端
rpm -qa ntp | grep ntpd
检测是否已经安装,如未安装执行yum安装服务
yum install ntp
关闭防火墙
service iptables stop
设置开启不自动启动防火墙
chkconfig iptables off
**修改配置文件/etc/ntp.conf**
添加如下内容
restrict 192.168.100.0 mask 255.255.255.0 nomodify notrap
server 127.127.1.0 # localclock
fudge 127.127.1.0 stratum 10
将上面的如下内容进行注释或者删除
server 0.centos.pool.ntp.org iburst
server 1.centos.pool.n