Ubuntu 14.04|16.04|19.04 Debian 一键修改时区和校准时间(附常用ntp服务器)

一条指令终极解决方案

修改时区需要修改文件弄来弄去都弄不好?一个指令,图形化界面帮到你!

dpkg-reconfigure tzdata

在图形界面里选择'Asia' => '任一国内城市'即会自动校准时区,国内城市会调整为CST

如果你还想校准时间

还是几条简单指令

apt install ntpdate
ntpdate time1.apple.com
更多的ntp校时服务器
1、阿里云授时服务器
#NTP服务器
ntp.aliyun.com             
ntp1.aliyun.com
ntp2.aliyun.com
ntp3.aliyun.com
ntp4.aliyun.com
ntp5.aliyun.com
ntp6.aliyun.com
ntp7.aliyun.com

#Time服务器
time1.aliyun.com
time2.aliyun.com
time3.aliyun.com
time4.aliyun.com
time5.aliyun.com
time6.aliyun.com
time7.aliyun.com


2、国内大学授时服务器
s1c.time.edu.cn       北京大学 
s2m.time.edu.cn       北京大学
s1b.time.edu.cn       清华大学
s1e.time.edu.cn       清华大学
s2a.time.edu.cn       清华大学
s2b.time.edu.cn       清华大学

3、国外授时服务器
#苹果提供的授时服务器   
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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章