centos 5.6安裝NTP伺服器

來源:互聯網
上載者:User


centos 5.6安裝NTP伺服器 為有些服務和實驗需要多台機器的時間同步,所以就有了搭建NTP的前提條件了,具體步驟如下:1,安裝ntp服務yum install ntp.i* -y2,修改/etc/ntp.confrestrict default kod nomodify notrap nopeer noquery   #restrict -6 default kod nomodify notrap nopeer noquery  #針對ipv6設定#這是ntp的預設設定  www.2cto.com  # 允許本地所有操作restrict 127.0.0.1 restrict -6 ::1 # 允許的區域網路絡段restrict 10.0.0.0 mask 255.0.0.0 nomodify motraprestrict 192.168.0.0 mask 255.255.0.0 nomodify motrap # 使用上層的internet ntp伺服器restrict 207.46.232.182 mask 255.255.255.255 nomodify notrap noqueryserver 207.46.232.182 # 如果無法與上層ntp server通訊以本地時間為標準時間server    127.127.1.0    # local clockfudge    127.127.1.0 stratum 10     # 計算本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 位址> <子網路遮罩> |<網段> <子網路遮罩> [ignore|noquery|notrap|nomodiy|notrust|nokod]ignore :關閉所有ntp服務  www.2cto.com  noquery:不提供ntp服務notrap:不提供trap遠程事件登入的功能nomodiy:表示用戶端不能更改ntp伺服器的時間參數,但可以通過ntp伺服器進行時間矯正notrust:拒絕沒有通過認證的用戶端nokod:kod技術可以組織一種dos攻擊 2,在修改/etc/ntp/step-tickers檔案207.46.232.182127.127.1.0#當ntp伺服器啟動時自動與這個檔案中的記錄ip進行時間校對 3,修改/etc/sysconfig/ntpdSYNC_HWCLOCK=YES #允許BIOS與系統時間同步 4,用戶端設定略。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.