- 相關(guān)推薦
如何配置Linux操作系統(tǒng)時間服務(wù)器
時間服務(wù)器的IP為:192.168.10.1
1)。 # rpm -ivh ntp-4.1.2-4.EL3.1.i386.rpm
2)。 # vi /etc/ntp.conf
注釋一行
restrict default ignore
加入一行
restrict 192.168.10.0 mask 255.255.255.0 notrust nomodify notrap
3)。 # vi /etc/ntp/step-tickers
加入一行
pool.ntp.org
這樣每次ntpd啟動時,會自動連接該國際標(biāo)準(zhǔn)時間服務(wù)器;
4)。 # service ntpd start
5)。 # netstat -an |grep 123
確保該端口以udp方式開放
時間客戶端配置(192.168.10.2)
a. # ntpdate 192.168.10.2
應(yīng)該顯示同步成功
b. # crond -e
加入
0-59/10 * * * * /usr/sbin/ntpdate 192.168.10.1
表示每隔10分鐘同步一次時間。
【如何配置Linux操作系統(tǒng)時間服務(wù)器】相關(guān)文章:
Linux下配置FTP服務(wù)器05-31
Linux操作系統(tǒng)web服務(wù)器簡單教程11-03
Linux系統(tǒng)如何配置雙顯卡09-13
如何配置Tomcat服務(wù)器環(huán)境06-16
LINUX操作系統(tǒng)09-19
LINUX操作系統(tǒng)01-22
Linux系統(tǒng)中安裝配置Samba服務(wù)器的步驟詳解06-21