一條指令終極解決方案
修改時區需要修改文件弄來弄去都弄不好?一個指令,圖形化界面幫到你!
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