系統(tǒng)之家 - 系統(tǒng)光盤(pán)下載網(wǎng)站!

當(dāng)前位置:系統(tǒng)之家 > 系統(tǒng)教程 > Linux使用NTP服務(wù)器

Linux系統(tǒng)下如何使用NTP服務(wù)器?(2)

時(shí)間:2015-11-23 16:08:54 作者:zhijie 來(lái)源:系統(tǒng)之家 1. 掃描二維碼隨時(shí)看資訊 2. 請(qǐng)使用手機(jī)瀏覽器訪問(wèn): https://m.xitongzhijia.net/xtjc/20151123/62163.html 手機(jī)查看 評(píng)論

  參數(shù):

  ignore :關(guān)閉所有的 NTP 聯(lián)機(jī)服務(wù)

  nomodify:客戶端不能更改服務(wù)端的時(shí)間參數(shù),但是客戶端可以通過(guò)服務(wù)端進(jìn)行網(wǎng)絡(luò)校時(shí)。

  notrust :客戶端除非通過(guò)認(rèn)證,否則該客戶端來(lái)源將被視為不信任子網(wǎng)

  noquery :不提供客戶端的時(shí)間查詢

  二、具體配置

 。踨oot@linuxidc1 ~]# vim /etc/ntp.conf

  3 restrict default kod nomodify notrap nopeer noquery

  4 #restrict -6 default kod nomodify notrap nopeer noquery

  5 restrict default nomodify

  6 restrict 192.168.8.0 mask 255.255.255.0 nomodify

  11 restrict 127.0.0.1

  18 #server 0.rhel.pool.ntp.org

  19 #server 1.rhel.pool.ntp.org

  20 #server 2.rhel.pool.ntp.org

  21 server 192.168.8.70

  31 server 127.127.1.0 # local clock

  32 fudge 127.127.1.0 stratum 10

 。踨oot@linuxidc1 ~]# /etc/init.d/ntpd restart

  Shutting down ntpd: [ OK ]

  Starting ntpd: [ OK ]

發(fā)表評(píng)論

0

沒(méi)有更多評(píng)論了

評(píng)論就這些咯,讓大家也知道你的獨(dú)特見(jiàn)解

立即評(píng)論

以上留言僅代表用戶個(gè)人觀點(diǎn),不代表系統(tǒng)之家立場(chǎng)

其他版本軟件

熱門(mén)教程

人氣教程排行

Linux系統(tǒng)推薦

掃碼關(guān)注
掃碼關(guān)注

掃碼關(guān)注 官方交流群 軟件收錄