国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統(tǒng) > CentOS > 正文

centos 5.6安裝NTP服務(wù)器的方法

2020-10-14 22:38:58
字體:
供稿:網(wǎng)友

  centos 5.6安裝NTP服務(wù)器

  為有些服務(wù)和實(shí)驗(yàn)需要多臺機(jī)器的時(shí)間同步,所以就有了搭建NTP的前提條件了,具體步驟如下:

  1,安裝ntp服務(wù)

  yum install ntp.i* -y

  2,修改/etc/ntp.conf

  restrict default kod nomodify notrap nopeer noquery   #

  restrict -6 default kod nomodify notrap nopeer noquery  #針對ipv6設(shè)置

  #這是ntp的默認(rèn)設(shè)置

  # 允許本地所有操作

  restrict 127.0.0.1

  restrict -6 ::1

  # 允許的局域網(wǎng)絡(luò)段

  restrict 10.0.0.0 mask 255.0.0.0 nomodify motrap

  restrict 192.168.0.0 mask 255.255.0.0 nomodify motrap

  # 使用上層的internet ntp服務(wù)器

  restrict 207.46.232.182 mask 255.255.255.255 nomodify notrap noquery

  server 207.46.232.182

  # 如果無法與上層ntp server通信以本地時(shí)間為標(biāo)準(zhǔn)時(shí)間

  server    127.127.1.0    # local clock

  fudge    127.127.1.0 stratum 10

  # 計(jì)算本ntp server 與上層ntpserver的頻率誤差

  driftfile /var/lib/ntp/drift

  # Key file containing the keys and key identifiers used when operating

  # with symmetric key cryptography.

  keys /etc/ntp/keys

  #日志文件

  logfile /var/log/ntp.log

  #說明:

  restrict <IP 地址> <子網(wǎng)掩碼> |<網(wǎng)段> <子網(wǎng)掩碼> [ignore|noquery|notrap|nomodiy|notrust|nokod]

  ignore :關(guān)閉所有ntp服務(wù)

  noquery:不提供ntp服務(wù)

  notrap:不提供trap遠(yuǎn)程事件登錄的功能

  nomodiy:表示客戶端不能更改ntp服務(wù)器的時(shí)間參數(shù),但可以通過ntp服務(wù)器進(jìn)行時(shí)間矯正

  notrust:拒絕沒有通過認(rèn)證的客戶端

  nokod:kod技術(shù)可以組織一種dos攻擊

  2,在修改/etc/ntp/step-tickers文件

  207.46.232.182

  127.127.1.0

  #當(dāng)ntp服務(wù)器啟動時(shí)自動與這個(gè)文件中的記錄ip進(jìn)行時(shí)間校對

  3,修改/etc/sysconfig/ntpd

  SYNC_HWCLOCK=YES #允許BIOS與系統(tǒng)時(shí)間同步

  4,客戶端設(shè)置略。


(責(zé)任編輯:VEVB)

發(fā)表評論 共有條評論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 贡觉县| 万载县| 元谋县| 梅州市| 武夷山市| 桦甸市| 广河县| 越西县| 金坛市| 修文县| 巨野县| 博白县| 永福县| 洪雅县| 田林县| 延吉市| 伊吾县| 北碚区| 东源县| 石家庄市| 廊坊市| 卢龙县| 临城县| 竹山县| 霍林郭勒市| 水城县| 惠水县| 陵水| 长治市| 晋城| 雷波县| 云阳县| 威信县| 密云县| 民乐县| 博罗县| 民权县| 平乡县| 杭锦旗| 南昌县| 莆田市|