全球公共 NTP 服务器地址和设置方法

NTP 服务器是用来使计算机时间同步化的一种协议,它可以使计算机对其服务器或时钟源(如石英钟,GPS等等)做同步化,它可以提供高精准度的时间校正,因 Windows 自带的 NTP有时导致经常无法访问,需要修改 NTP 服务器,这里优先提供国内可以使用的 NTP 服务器地址,然后也收集了一些国外知名的 NTP 服务器地址,提供给大家选择。

国内NTP服务器地址

阿里云授时服务器(Aliyun NTP Server)

ntp1.aliyun.comntp2.aliyun.comntp3.aliyun.comntp4.aliyun.comntp5.aliyun.comntp6.aliyun.comntp7.aliyun.com

腾讯云授时服务器(Tencent Cloud NTP Server)

time1.cloud.tencent.comtime2.cloud.tencent.comtime3.cloud.tencent.comtime4.cloud.tencent.comtime5.cloud.tencent.com

国家授时中心(NTSC NTP Server)

ntp.ntsc.ac.cn

中国快速授时服务(NTP ORG CN)

cn.ntp.org.cn

港台NTP服务器地址

香港天文台授时服务器

stdtime.gov.hk

中华电信 NTP 服务器

tock.stdtime.gov.twwatch.stdtime.gov.twtime.stdtime.gov.twclock.stdtime.gov.twtick.stdtime.gov.tw

海外NTP服务器地址

谷歌公共 NTP 服务器(Google NTP Server)

time.google.comtime1.google.comtime2.google.comtime3.google.comtime4.google.com

苹果公共 NTP 服务器(Apple NTP Server)

time1.apple.comtime2.apple.comtime3.apple.comtime4.apple.comtime5.apple.comtime6.apple.comtime7.apple.com

CloudFlare NTP 服务器(CloudFlare NTP Server)

time.cloudflare.com

主流系统自带 NTP 服务器

Windows:time.windows.com , time.nist.gov

MacOS:time.apple.com , time.asia.apple.com

Windows 设置 NTP 方法

进入 控制面板 > 时钟、语言和区域 > 设置时间和日期 > Internet时间 > 更改设置

全球公共 NTP 服务器地址和设置方法-阿帕胡

Linux 设置 NTP 方法

设置时区(若已设置可略过):

cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

安装NTP:

yum install ntp

在配置文件 /etc/ntp.conf 中添加:

server ntp.aliyun.com preferserver time.google.com

手工发起同步:

ntpdate ntp.aliyun.com

启动NTP服务:

service ntpd start

设置开机启动:

chkconfig ntpd on

检查设置:

chkconfig --list ntpd

也可以安装NTPDATE:

yum install ntpdate

然后同步:

ntpdate ntp.aliyun.com

加入定时计划任务,每隔10分钟同步一下时钟

crontab -e      0-59/10 * * * * /usr/sbin/ntpdate ntp.aliyun.com | logger -t NTP
THE END