NTP 是 Network Time Protocol 的简称,也就是网络时间协议。
而 NTP 服务器是可以通过网络来同步时间的服务器。
Linux下使用ntpdate命令进行校时:ntpdate ntp.sjtu.edu.cn
|
地区
|
NTP服务
|
NTP地址
|
国内知名公共 NTP 服务器地址
Chinese Public NTP Server
|
国家授时中心 NTP 服务器
NTSC NTP Server
|
ntp.ntsc.ac.cn
|
中国 NTP 快速授时服务
NTP ORG CN
|
cn.ntp.org.cn
|
教育网
EDU
|
edu.ntp.org.cn
|
国际 NTP 快速授时服务
Pool NTP ORG
|
cn.pool.ntp.org
|
阿里云公共 NTP 服务器
Aliyun NTP Server
|
time.pool.aliyun.com
|
|
time1.aliyun.com
|
|
time2.aliyun.com
|
|
time3.aliyun.com
|
|
time4.aliyun.com
|
|
time5.aliyun.com
|
|
time6.aliyun.com
|
|
time7.aliyun.com
|
腾讯云公共 NTP 服务器
Tencent Cloud NTP Server
|
time1.cloud.tencent.com
|
|
time2.cloud.tencent.com
|
|
time3.cloud.tencent.com
|
|
time4.cloud.tencent.com
|
|
time5.cloud.tencent.com
|
教育网(高校自建)
EDU NTP Server
|
ntp.sjtu.edu.cn
|
|
ntp.neu.edu.cn
|
|
ntp.bupt.edu.cn
|
|
ntp.shu.edu.cn
|
香港天文台公共 NTP 服务器
Hong Kong Observator NTP Server
|
stdtime.gov.hk
|
国际 NTP 服务器
Global Public NTP Server
|
国际 NTP 快速授时服务
Pool NTP ORG
|
pool.ntp.org
|
|
0.pool.ntp.org
|
|
1.pool.ntp.org
|
|
2.pool.ntp.org
|
|
3.pool.ntp.org
|
|
asia.pool.ntp.org
|
谷歌公共 NTP 服务器
Google NTP Server
|
time1.google.com
|
|
time2.google.com
|
|
time3.google.com
|
|
time4.google.com
|
苹果公司公共 NTP 服务器
Apple NTP Server
|
time.apple.com
|
|
time1.apple.com
|
|
time2.apple.com
|
|
time3.apple.com
|
|
time4.apple.com
|
|
time5.apple.com
|
|
time6.apple.com
|
|
time7.apple.com
|
微软 Windows NTP 服务器
Microsoft Windows NTP Server
|
time.windows.com
|
美国标准技术研究院 NTP 服务器
NIST NTP Server
|
time.nist.gov
|
|
time-nw.nist.gov
|
|
time-a.nist.gov
|
|
time-b.nist.gov
|
NTP 是 Network Time Protocol 的简称,也就是网络时间协议。而 NTP 服务器是可以通过网络来同步时间的服务器。Linux下使用ntpdate命令进行校时:ntpdate ntp.sjtu.edu.cn· 地区 NTP服务 NTP地址 国内知名公共 NTP 服务器地址 Chinese Public NTP Server 国家授时中心 NTP 服务器 NTSC NTP Server ntp.ntsc.ac.cn
NTP
网络时间协议用来同步网络上不同主机的系统时间。你管理的所有主机都可以和一个指定的被称为
NTP
服务器
的时间
服务器
同步它们的时间。而另一方面,一个
NTP
服务器
会将它的时间和任意
公共
NTP
服务器
,或者你选定的
服务器
同步。由
NTP
管理的所有系统时钟都会同步精确到毫秒级。
在公司环境中,如果他们不想为
NTP
传输打开防火墙,就有必要设置一个内部
NTP
服务器
,然后让员工使用内部
服务器
而不是
公共
NTP
服务器
。在这篇文章中,我们会介绍在CentOS 7 搭建
ntp
时钟
服务器
的步骤,一起来看看吧。
服务器
: 192.168.137.3
客户机: 192.168.1
sudo apt安装rrdtool imagemagick
rrdtool创建
ntp
1.rrd -从现在开始2h-步骤1s DS:req:GAUGE:5m:0:120000 RRA:AVERAGE:0.5:1s:10d RRA:AVERAGE:0.5:1m:90d RRA:AVERAGE:0.5:1h:18M RRA:AVERAGE:0.5:1d:10y
须藤crontab -e -u www-data * / 5 * * * * / srv / leo
ntp
/
ntp
_png
具体使用方法可以参见中国科学院《关于“网络授时域名”全面试运行测试的公告》
http://www.cas.cn/tz/201809/t20180921_4664344.shtml
二、腾讯云
NTP
授时
服务器
地址
:
对于非腾讯云设备,可以使用腾讯云提供的公网
NTP
服务器
(即:外网
NTP
服务器
)
time1.cloud.tencent.com
time2.cloud.tencent.com
210.72.145.44 (国家授时中心
服务器
IP
地址
)
ntp
.sjtu.edu.cn 202.120.2.101 (上海交通大学网络中心
NTP
服务器
地址
)
s1a.time.edu.cn 北京邮电大学
NTP
时钟
服务器
IP
地址
配置方法(海康大华版)
有时候我们去查看录像发现无法正常查到录像并回放录像,排查了硬盘状态和录像计划都是没有问题的,还有什么需要我们去确认下呢?
这个时候我们可以去看下设备时间,可能会发现显示时间和北京时间有差异,比如1970年1月1日。那我们就需要对设备时间进行
校时
,使其能够正常录像。
设备本地
校时
录像机预览界面鼠标右击,点击主菜单-系统配置-通用配置-基本配置,可以看到系统日期和时间,您可以手动
校时
修改录像机的系统时间。
如果您的NVR接的是第三方IPC,可能存在
校时
不成功的情
Network Time Protocol(
NTP
,网络时间协议)用于同步它所有客户端时钟的
服务
。
NTP
服务器
将本地系统的时钟与一个
公共
的
NTP
服务器
同步然后作为时间主机提供
服务
,使本地网络的所有客户端能同步时钟。
同步时钟大的好处是相关系统上日志文件中的数据,如果网络中使用中央日志主机集中管理日志,得到的日志结果更能反映真实情况。在同步了时钟的网络中,集中式的性能监控、
服务
监控系统能实时的反应系统信息,系统管理员可以快速的检测和解决系统错误。
安装配置
NTP
服务
下面将介绍
NTP
服务器
的简单配置:
第一步,安装
NTP
服务
一般的
Linux
发行版都会带n
关于时间
服务
Network Time Protocol(
NTP
,网络时间协议)用于同步它所有客户端时钟的
服务
。
NTP
服务器
将本地系统的时钟与一个
公共
的
NTP
服务器
同步然后作为时间主机提供
服务
,使本地网络的所有客户端能同步时钟。
同步时钟最大的好处就是相关系统上日志文件中的数据,如果网络中使用中央日志主机集中管理日志,得到的日志结果就更能反映真实情况。
在同步了时钟的网络中,集中式的性能监控、
服务
监控系统能实时的反应系统信息,系统管理员可以快速的检测和解决系统错误。
<h3>回答1:</h3><br/>要在
Linux
上搭建
NTP
服务器
,需要执行以下步骤:
1. 安装
NTP
软件包:使用命令行工具,输入“sudo apt-get install
ntp
”(适用于Debian/Ubuntu系统)或“sudo yum install
ntp
”(适用于CentOS/RHEL系统)来安装
NTP
软件包。
2. 配置
NTP
服务器
:编辑
NTP
配置文件“/etc/
ntp
.conf”,添加
NTP
服务器
的IP
地址
或域名,并指定
NTP
服务器
的偏差值和优先级。例如,可以添加以下行:
server .cn.pool.
ntp
.org iburst
server 1.cn.pool.
ntp
.org iburst
server 2.cn.pool.
ntp
.org iburst
3. 启动
NTP
服务
:使用命令行工具,输入“sudo systemctl start
ntp
”来启动
NTP
服务
。如果需要在系统启动时自动启动
NTP
服务
,可以使用“sudo systemctl enable
ntp
”命令。
4. 验证
NTP
服务器
:使用命令行工具,输入“
ntp
q -p”来查看
NTP
服务器
的状态和同步情况。如果
NTP
服务器
正常工作,应该可以看到类似以下输出:
remote refid st t when poll reach delay offset jitter
==============================================================================
*.cn.pool.
ntp
.o .POOL. 16 p - 64 .000 .000 .000
+1.cn.pool.
ntp
.o .POOL. 16 p - 64 .000 .000 .000
+2.cn.pool.
ntp
.o .POOL. 16 p - 64 .000 .000 .000
以上就是在
Linux
上搭建
NTP
服务器
的基本步骤。
CSDN-Ada助手:
【Selenium】解决chrome浏览器打开网站提示“您的连接不是私密连接”问题
小火慢炖的粥:
Git:解决报错:fatal: The remote end hung up unexpectedly
不让我抬杠,那我拿什么理智?:
Git:解决报错:fatal: The remote end hung up unexpectedly
小森林 ^o^:
Windows下bat脚本中调用另一个bat脚本
navigator2015: