溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

部署企業(yè)內(nèi)部NTP時間服務(wù)器

發(fā)布時間:2020-07-25 02:15:32 來源:網(wǎng)絡(luò) 閱讀:1389 作者:lihuansong 欄目:建站服務(wù)器

部署企業(yè)內(nèi)部NTP時間服務(wù)器,假設(shè)node0作為NTP時間服務(wù)器主節(jié)點,node1, node2都是ntp客戶端從節(jié)點,內(nèi)部網(wǎng)段10.10.75.0。

  1. 所有節(jié)點通過yum命令安裝ntp,命令如下:yum install ntp 。

  2. 修改node0節(jié)點的配置文件/etc/ntp.conf,
    內(nèi)容如下:
    server 0.cn.pool.ntp.org
    server 0.asia.pool.ntp.org
    server 3.asia.pool.ntp.org
    restrict 0.cn.pool.ntp.org nomodify notrap noquery
    restrict 0.asia.pool.ntp.org nomodify notrap noquery
    restrict 3.asia.pool.ntp.org nomodify notrap noquery
    #10.10.75.0網(wǎng)段的服務(wù)器都可以使用NTP服務(wù)器來同步時間。
    restrict default ignore
    restrict 10.10.75.0 mask 255.255.255.0 notrap nomodify
    server 127.127.1.0 prefer
    fudge 127.127.1.0 stratum 10

3.在node1、node2節(jié)點上,編輯/etc/ntp.conf
添加一句server NTP時間同步服務(wù)器IP地址 prefer

4.所有節(jié)點啟動 ntp服務(wù),把ntp服務(wù)設(shè)置為開機自啟動,命令如下
service ntpd start
chkconfig ntpd on

  1. 從節(jié)點先使用ntpdate手動同步一下時間命令如下:ntpdate -u 主節(jié)點IP地址
向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI