配置安装本地NTP服务器

设置ntp服务开机启动
service ntpd start
chkconfig ntpd on

修改服务端
vim /etc/ntp.conf

server 0.cn.pool.ntp.org iburst
server 1.cn.pool.ntp.org iburst
server 2.cn.pool.ntp.org iburst
server 3.cn.pool.ntp.org iburst

修改客户端服务器
vim /etc/ntp.conf

server 10.28.207.220
#server 0.centos.pool.ntp.org iburst
#server 1.centos.pool.ntp.org iburst
#server 2.centos.pool.ntp.org iburst
#server 3.centos.pool.ntp.org iburst

ntpdc -c loopinfo

ntpq -p

猜你喜欢

转载自www.cnblogs.com/xfile/p/9049989.html