CentOS自動(dòng)同步時(shí)間

安裝ntpdate

yum install ntpdate -y

測試是否正常

ntpdate cn.ntp.org.cn

# 正常情況
[root@centos7 www]# ntpdate cn.ntp.org.cn
 3 Mar 20:52:20 ntpdate[9748]: adjust time server 202.108.6.95 offset -0.017460 sec

設(shè)置定時(shí)任務(wù)

crontab -e
*/10 * * * * ntpdate cn.ntp.org.cn

NTP服務(wù)器列表

區(qū)域[zone] 域名[Domain] IP池[IP Pool]
中國[China] cn.ntp.org.cn [223.65.211.42][223.65.205.2]223.113.97.99,[202.112.29.82] [202.108.6.95] [120.25.108.11] [182.92.12.11] [115.28.122.198]
中國教育網(wǎng)[China-EDU] edu.ntp.org.cn [202.112.31.197][202.112.29.82][202.118.1.130]202.118.1.81
中國臺(tái)灣[ChinaTaiwan] tw.ntp.org.cn [123.204.45.116] [103.18.128.60]
美國[America] us.ntp.org.cn [24.56.178.140] [216.218.254.202] [208.53.158.34] [66.228.42.59]
新加坡[Singapore] sgp.ntp.org.cn [103.11.143.248] [202.73.57.107] [128.199.134.40] [218.186.3.36] [188.166.245.58]
韓國[korea] kr.ntp.org.cn [211.233.40.78] [106.247.248.106]
德國[Germany] de.ntp.org.cn [131.188.3.220] [131.188.3.223]
日本[Japan] jp.ntp.org.cn [133.100.11.8] [106.187.100.179] [129.250.35.251]

參考:

全球可用的NTP服務(wù)器列表與解析服務(wù) - ntp.org.cn & ntpdate.net

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容