Original link: https://meledee.com/2022/08/4063.html
NTP is the Network Time Protocol and is often used to synchronize the time of networked devices. Our computers, mobile phones, tablets and other networked devices or watches will inevitably have time errors due to various reasons. With NTP, regular time correction can be realized, reducing or even avoiding time errors. The default NTP in Windows system often fails to synchronize, so it is best to replace it with a domestic NTP server.
Windows setting method:
Go to Control Panel > Clock, Language and Region > Set Time and Date > Internet Time > Change Settings
Linux setup method:
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime #Set time zone yum install ntp #Install NTP service
Enter the NTP configuration file
nano /etc/ntp.conf
Add the following server address with the command: (you can replace it yourself)
server time.cloudflare.com prefer server cn.ntp.org.cn
Some useful NTP commands:
ntpdate ntp.aliyun.com #Manually initiate synchronization service ntpd start #Start the NTP service chkconfig ntpd on #Set the startup to start chkconfig --list ntpd #Check the settings
Well-known NTP servers in Greater China:
National Timing Center, Chinese Academy of Sciences:
ntp.ntsc.ac.cn
210.72.145.18
Alibaba Cloud NTP server:
ntp.aliyun.com
Tencent Cloud NTP server:
ntp.tencent.com
Hong Kong Observatory NTP server:
stdtime.gov.hk
Macao Geophysics and Meteorological Bureau NTP server:
time.smg.gov.mo
Taiwan Chunghwa Telecom NTP server:
time.stdtime.gov.tw
Well-known overseas NTP servers:
Asian timing sub-server:
asia.pool.ntp.org
Google NTP server:
time.google.com
Apple NTP server:
time.apple.com
Microsoft NTP server:
time.windows.com
Cloudflare NTP servers:
time.cloudflare.com
This article is reprinted from: https://meledee.com/2022/08/4063.html
This site is for inclusion only, and the copyright belongs to the original author.