伺服器使用ntpd對時--用戶端配置

來源:互聯網
上載者:User

伺服器使用ntpd對時--用戶端配置 為了使伺服器叢集的系統時間維持在同一時間。使用對時程式必不可少。通常存在使用ntpdate方式和ntpd方式。  www.2cto.com      ntpdate方式會使系統時間在對時時刻發生跳變,這對某些依賴系統時間來決定是否逾時的程式具有很大的影響。     ntpd方式採用一種優雅的方式。逐步逼近最新時刻。這樣變化過程對依賴系統時間的程式影響較小。      ntpd用戶端配置:     開啟 /etc/ntp.conf     注釋掉     #server 0.rhel.pool.ntp.org    #server 1.rhel.pool.ntp.org    #server 2.rhel.pool.ntp.org     修改     server  127.127.1.0 # local clock    fudge   127.127.1.0 stratum 10     為國家授時中心伺服器ip     server  210.72.145.44   # local clock     fudge   210.72.145.44 stratum 10     添加     ntpd_enable="YES"     啟動服務     service ntpd restart    chkconfig ntpd on      可以使用的命令     ntpq -p     ntpstat

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.