Centos 服務(wù)器系統(tǒng)時間同步設(shè)置方法
Centos 服務(wù)器系統(tǒng)時間同步設(shè)置方法有哪些?Centos 服務(wù)器系統(tǒng)時間同步的重要性。各個時間服務(wù)器的域名。
新裝的服務(wù)器可能設(shè)置了錯誤的,需要調(diào)整時區(qū)并調(diào)整時間.如下是使用NTP來從一個時間服務(wù)器同步
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ntpdate us.pool.ntp.org
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtimentpdate us.pool.ntp.org
很簡單吧,解析一下,第一句是把當(dāng)前時區(qū)調(diào)整為上海就是+8區(qū),想改其他時區(qū)也可以去看看/usr/share/zoneinfo目錄;
然后第二句是利用ntpdate同步標(biāo)準(zhǔn)時間.
沒有安裝ntpdate的可以yum一下:
加入定時計(jì)劃任務(wù),每隔10分鐘同步一下時鐘
crontab -e
中國國家授時中心:
http://www.time.ac.cn/stime.asp
其他網(wǎng)絡(luò)時間服務(wù)器地址如下:(也可以自己去搜索下)
time.nist.gov (美國)
ntp.fudan.edu.cn (復(fù)旦) )(國內(nèi)用戶推薦使用此服務(wù)器)
timekeeper.isi.edu
subitaneous.cpsc.ucalgary.ca
usno.pa-x.dec.com
time.twc.weather.com
swisstime.ethz.ch
ntp0.fau.de
ntp3.fau.de
time-a.nist.gov
time-b.nist.gov
time-nw.nist.gov
nist1-sj.glassey.com
210.72.145.44 也是一個不錯的地址,速度很快!