Window时间不准解决计划 :国内常用NTP服务器地址汇总

安鹿针对Windows时间不准尴尬提供解决计划,时间介绍NTP(网络时间协议)作用及国内外常用NTP服务器地址,不准包括阿里云 、解决计划腾讯云 、国内清华大学等国内源及苹果、常用谷歌国外源。地址

校验校验一个事例:

时间不对的汇总影响很大,首先所有OTP类软件裸露的时间验证码会不对 ,由于我在服务器上打开了OTP,不准但是解决计划验证码一直不对,后来进服务器发现服务器上的国内时间不是中国时间 ,后面修改至中国上海时间,常用但后面登陆又不行了,地址后面发现是汇总本地的电脑时间不对。打开自动同步一直出局,时间后面测试,把时间服务器源修改成阿里的 ,更新速度很快!

当然  ,你选择以下其一对于你本地同步最快即可!

一  、NTP 是什么 ?

NTP 是网络时间协议(Network Time Protocol) ,它用来同步网络设备【如计算机、手机】的时间的协议 。

二 、NTP 实现什么目的 ?

目的很简易,就是为了提供准确时间 。因为我们的手表、手机 、电脑等设备 ,经常会跑着跑着时间就裸露了误差 ,或快或慢的少几秒 ,时间长了甚至误差过分钟 。

三、NTP 服务器列表

Windows系统上自带的两个 :time.windows.comtime.nist.gov

MacOS上自带的两个 :time.apple.comtime.asia.apple.com

NTP授时快速域名服务:cn.ntp.org.cn

中国科学院国家授时中心:ntp.ntsc.ac.cn

开源NTP服务器:cn.pool.ntp.org

1 、阿里云授时服务器

ntp.aliyun.com

2 、腾讯云授时服务器

time1.cloud.tencent.com
time2.cloud.tencent.com
time3.cloud.tencent.com
time4.cloud.tencent.com
time5.cloud.tencent.com

3 、国内大学授时服务器

ntp.tuna.tsinghua.edu.cn 清华大学(ipv4/ipv6)

4、国外授时服务器

苹果提供的授时服务器

time1.apple.com
time2.apple.com
time3.apple.com
time4.apple.com
time5.apple.com
time6.apple.com
time7.apple.com

Google提供的授时服务器

time1.google.com
time2.google.com
time3.google.com
time4.google.com

四 、NTP 设置计划

1 、Windows设置计划

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

2 、Linux设置计划

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

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

安装NTP:

yum install ntp
yum install ntp
yum install ntp

在配置文件/etc/ntp.conf中增补 :

server ntp.aliyun.com prefer
server cn.ntp.org.cn
server ntp.aliyun.com preferserver cn.ntp.org.cn
server ntp.aliyun.com preferserver cn.ntp.org.cn

手工发起同步 :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
crontab -e0-59/10 * * * * /usr/sbin/ntpdate ntp.aliyun.com | logger -t NTP
crontab -e0-59/10 * * * * /usr/sbin/ntpdate ntp.aliyun.com | logger -t NTP
渝ICP备2025076537号-22