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