当前位置:网站首页>ntp错误: no server suitable for synchronization found
ntp错误: no server suitable for synchronization found
2022-07-24 05:19:00 【sf_www】
问题
假如我们配置了ntp服务以后,始终无法同步,执行命令 ntpdate -u serverip
直接报错:no server suitable for synchronization found
解决
结论:一般都是ntp server有问题,不然就是client和server网络不通。
这里假设ntpserver 的ip是X1
依次按以下步骤来排查
1. 使用命令 ntpdate -d X1
返回信息中关注2个错误:
错误1:X1: Server dropped: strata too high
这个错误下,并且显示“stratum 16”。而正常情况下stratum这个值得范围是“0~15”。这是因为NTP server还没有和其自身或者它的上一层server同步上。所以这里就要去检查ntpserver是否是配置正确的,比如server是和自身同步,还是再和上一层服务器同步,查看是否配置正确,如果配置的是还和上一层服务器同步则查看上一层是否正常。(当然在ntp server上重新启动ntp服务后,ntp server自身或者与其server的同步的需要一个时间段,这个过程可能是5分钟,但是一般用不了这么久,在这个时间之内在客户端运行ntpdate命令时会产生no server suitable for synchronization found的错误。)查看ntpserver是否完成了和自身同步,可以使用命令 ntpq -p,
同步则最前面会显示 * 号,不然则没有。
错误2:X1: Server dropped: no data
出现该错误则,先查看和ntp服务端是否能联通(ping x1),能联通则再看是否是开启了防火墙禁止了123端口的访问,再不是就去看ntpserver机器上ntp服务是否正常(service ntpd status; ntpq -p)。
如果以上都不是那再看是否是ntp的版本问题。比如ntp4.2(包括4.2)之后的版本,在restrict的定义中使用了notrust的话,会导致以上错误。
边栏推荐
- Canvas - fill
- Function Closure
- The bottom of decentralization is consensus -- Interpretation of Polkadot mixed consensus mechanism
- Pycharm configures LAN access, and the LAN cannot access the solution
- 首届波卡黑客松项目「Manta Network」的进击之路
- 去中心化的底层是共识——Polkadot 混合共识机制解读
- OpenGL simulates the process of a ball falling to the ground and bouncing up in real life. Draw a ball on the screen, and the ball will fall from top to bottom, hit the ground and bounce up again.
- OpenGL draws a cone on the screen, which has four faces, each of which is a triangle. Add lighting and texture effects to the cone
- The repetition detection function of PHP multi line text content and count the number of repetitions
- Draw a moving teapot on the screen. The teapot first moves slowly towards the screen, becoming smaller and smaller, becoming more and more blurred; Then it grows bigger and clearer, and keeps repeatin
猜你喜欢

The repetition detection function of PHP multi line text content and count the number of repetitions

grid布局

Fusdt流动性质押挖矿开发逻辑系统原理

Flink Watermark机制

自定义MVC 1.0

PHP 多行文字内容的重复检测功能并统计重复次数

Polkadot | 一文解读颠覆传统社媒的Liberty计划如何在波卡落地

Station B video comment crawling - take the blade of ghost destruction as an example (and store it in CSV)

canvas - Bezier 贝塞尔曲线

XML解析
随机推荐
Tabs tab (EL tabs)_ Cause the page to jam
【虚拟化】如何将虚拟机从workstation转换到esxi
Flink Watermark机制
MySQL queries the last four digits of the mobile phone number. How to write the first few digits?
MySQL之函数运用
mysql查询手机号码后四位,前几位怎么写?
按钮 渐变
网页播放rtsp视频流
4. Draw a red triangle and a yellow square on the screen. Triangle in the back, small; Square in front, big. Using the fusion technology, the triangle can be seen through the square, and the source an
微信小程序返回携带参数或触发事件
首届波卡黑客松项目「Manta Network」的进击之路
【vsphere高可用】主机故障切换
mapboxgl + geoserver 配置本地地图教程
php的多选、单选结果怎么在前台显示?
【数据挖掘】聚类分析的简要介绍
WASM VS EVM,波卡的选择预示了公链未来
公司女同事深夜11点让我去她住处修电脑,原来是C盘爆红,看我一招搞定女同事....的电脑
Useref create dynamic reference
The project is deployed to the public network for free (intranet penetration)
自定义MVC 1.0