Centos 服務(wù)器系統(tǒng)時(shí)間同步設(shè)置方法
Centos 服務(wù)器系統(tǒng)時(shí)間同步設(shè)置方法有哪些?Centos 服務(wù)器系統(tǒng)時(shí)間同步的重要性。各個(gè)時(shí)間服務(wù)器的域名。
新裝的服務(wù)器可能設(shè)置了錯(cuò)誤的,需要調(diào)整時(shí)區(qū)并調(diào)整時(shí)間.如下是使用NTP來(lái)從一個(gè)時(shí)間服務(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
很簡(jiǎn)單吧,解析一下,第一句是把當(dāng)前時(shí)區(qū)調(diào)整為上海就是+8區(qū),想改其他時(shí)區(qū)也可以去看看/usr/share/zoneinfo目錄;
然后第二句是利用ntpdate同步標(biāo)準(zhǔn)時(shí)間.
沒(méi)有安裝ntpdate的可以yum一下:
加入定時(shí)計(jì)劃任務(wù),每隔10分鐘同步一下時(shí)鐘
crontab -e
中國(guó)國(guó)家授時(shí)中心:
http://www.time.ac.cn/stime.asp
其他網(wǎng)絡(luò)時(shí)間服務(wù)器地址如下:(也可以自己去搜索下)
time.nist.gov (美國(guó))
ntp.fudan.edu.cn (復(fù)旦) )(國(guó)內(nèi)用戶(hù)推薦使用此服務(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 也是一個(gè)不錯(cuò)的地址,速度很快!
宇塵網(wǎng)絡(luò),更多服務(wù)器技術(shù)性知識(shí),真誠(chéng)歡迎您的咨詢(xún)?cè)L問(wèn)。