Linux時間同步ntpdate

2022-04-05 17:52:36 字數 802 閱讀 7219

linux伺服器要求時間準確,但是linux本身沒有網路時間同步功能,我們需要借助ntpdate功能來實現時間精準.

安裝ntpdate

yum -y install ntpdate

#ntp.sjtu.edu.cn 202.120.2.101 (上海交通大學網路中心ntp伺服器位址)

#s1a.time.edu.cn 北京郵電大學

#s1b.time.edu.cn 清華大學

#s1c.time.edu.cn 北京大學

#s1d.time.edu.cn 東南大學

#s1e.time.edu.cn 清華大學

#s2a.time.edu.cn 清華大學

#s2b.time.edu.cn 清華大學

#s2c.time.edu.cn 北京郵電大學

#s2d.time.edu.cn 西南地區網路中心

#s2e.time.edu.cn 西北地區網路中心

#s2f.time.edu.cn 東北地區網路中心

#s2g.time.edu.cn 華東南地區網路中心

#s2h.time.edu.cn 四川大學網路管理中心

#s2j.time.edu.cn 大連理工大學網路中心

#s2k.time.edu.cn cernet桂林主節點

#s2m.time.edu.cn 北京大學

同步命令如下(上海交通大學)

也可以這個命令計畫任務裡設定下

crontab -e

00 11 * * * root ntpdate ntp.sjtu.edu.cn

每天11點同步

CentOS6 5下的時間同步ntpdate安裝

1.ntp ntpdate 2.yum y install ntp yum y install ntpdate 安裝ntp與ntpdate 3.chkconfig 檢視啟動的系統服務 4.service ntpdate start chkconfig ntpdate on 開啟ntpdate服務 5...

同步時間 Linux設定時間同步

所有節點都要確保已安裝ntpd 在步驟 4已安裝 1.首先選擇一台伺服器作為時間伺服器。假設選定為node1.sunny.cn伺服器為時間伺服器。2.ntp伺服器的配置 修改ntp.conf檔案 vi etc ntp.conf 一共修改三處內容,將 去掉,並且將網段修改正確。restrict 192...

linux時間同步

cd usr sbin root localhostsbin wget root localhostsbin tar zxvf ntdate.tar.gz root localhost sbin ntpdate 210.72.145.44 這樣時間就正常了 但是我們不會每天都去檢視伺服器時間是否正確...