怎樣開(kāi)啟Suse ntp服務(wù)
Suse有很多值得學(xué)習(xí)的地方,這里我們主要介紹開(kāi)啟Suse ntp服務(wù)。通過(guò)ntp(network time protocol),網(wǎng)絡(luò)上的服務(wù)器可以自動(dòng)保持時(shí)鐘同步。希望我說(shuō)的講解對(duì)你了解開(kāi)啟Suse ntp服務(wù)有所幫助。ntpdate和ntpd都可以用來(lái)校準(zhǔn)系統(tǒng)時(shí)間,ntpdate在啟動(dòng)時(shí)校準(zhǔn)系統(tǒng)時(shí)間,而ntpd漸進(jìn)的校準(zhǔn)時(shí)間。所以如果作為服務(wù)器長(zhǎng)期運(yùn)行,則應(yīng)該運(yùn)行ntpd服務(wù)。
在Suse 10下配置ntpd很簡(jiǎn)單。
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. 啟動(dòng)ntp服務(wù)
# service ntp restart
# service ntp restart3. 配置ntp開(kāi)機(jī)自動(dòng)運(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才會(huì)正常運(yùn)作。
這樣你就完成了開(kāi)啟Suse ntp服務(wù)的功能,21世紀(jì),信息化的時(shí)代開(kāi)啟Suse的應(yīng)用會(huì)越來(lái)越廣,會(huì)受到更多的人重視,這里講的小知識(shí),為你在以后的學(xué)習(xí)中有幫助。
【編輯推薦】




















