客户端首先安装ntpshell
yum install ntp shell> ntpdate 95.222.122.210 shell> ntpdate 202.112.10.60 shell> ntpdate 192.93.2.20
注意:ui
客户端同步时间时出现:no server suitable for synchronization found 错误提示spa
缘由:.net
在ntp server上从新启动ntp服务后,ntp server自身或者与其server的同步的须要一个时间段,这个时间段多是5分钟,在这个时间段客户端运行ntpdate命令时会产生“no server suitable for synchronization found”的错误code
如何知道ntp server完成了和自身同步的过程呢?server
在ntp server上使用命令:blog
shell>ntpq -p
参考资料:同步
http://blog.csdn.net/mmz_xiaokong/article/details/8700979it