linux 使用ntp服务进行时间同步

作者

linux下时间同步,只需两步。一安装 yum install ntpdate, 二 执行同步的命令,比如 ntpdate ntp1.aliyun.com,这里使用的是阿里云的ntp服务器

centos 下时间同步

yum -y install ntpdate
ntpdate ntp1.aliyun.com

# 同步时间成功后的,提示信息
3 Jan 17:27:28 ntpdate[15296]: adjust time server 120.25.115.20 offset 0.000698 sec

百度百科里介绍的 ntp

NTP是网络时间协议(Network Time Protocol),它是用来同步网络中各个计算机的时间的协议。
在计算机的里,时间非常地重要,例如对于火箭发射这种科研活动,对时间的统一性和准确性要求就非常地高,是按照A这台计算机的时间,还是按照B这台计算机的时间?NTP就是用来解决这个问题的,NTP(Network Time Protocol,网络时间协议)是用来使网络中的各个计算机时间同步的一种协议。它的用途是把计算机的时钟同步到协调时UTC,其精度在局域网内可达0.1ms,在互联网上绝大多数的地方其精度可以达到1-50ms。

更多 ntp 服务器 可以查看

https://www.ntp.org.cn/

回复

您的电子邮箱地址不会被公开。