怎樣開啟Suse ntp服務(wù)
Suse有很多值得學(xué)習(xí)的地方,這里我們主要介紹開啟Suse ntp服務(wù)。通過ntp(network time protocol),網(wǎng)絡(luò)上的服務(wù)器可以自動保持時鐘同步。希望我說的講解對你了解開啟Suse ntp服務(wù)有所幫助。ntpdate和ntpd都可以用來校準(zhǔn)系統(tǒng)時間,ntpdate在啟動時校準(zhǔn)系統(tǒng)時間,而ntpd漸進(jìn)的校準(zhǔn)時間。所以如果作為服務(wù)器長期運(yùn)行,則應(yīng)該運(yùn)行ntpd服務(wù)。
在Suse 10下配置ntpd很簡單。
1. 添加ntp server,這里使用了ntp.org的服務(wù)器,也可以使用已經(jīng)運(yùn)行ntpd的服務(wù)器;
#vi /etc/ntp.conf
## Outside source of synchronized time
##
## server xx.xx.xx.xx # IP address of server
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
#vi /etc/ntp.conf
## Outside source of synchronized time
##
## server xx.xx.xx.xx # IP address of server
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
2. 啟動ntp服務(wù)
# service ntp restart
# service ntp restart3. 配置ntp開機(jī)自動運(yùn)行
# chkconfig |grep ntp
ntp off
# chkconfig -e ntp
ntp 3
# chkconfig |grep ntp
ntp off
# chkconfig -e ntp
ntp 34. 如果是在xen半虛擬化的domU上運(yùn)行ntp,則需要做一下系統(tǒng)參數(shù)的修改, ntp才會正常運(yùn)作。
這樣你就完成了開啟Suse ntp服務(wù)的功能,21世紀(jì),信息化的時代開啟Suse的應(yīng)用會越來越廣,會受到更多的人重視,這里講的小知識,為你在以后的學(xué)習(xí)中有幫助。
【編輯推薦】