CentOS6.5下配置rdate時間伺服器

來源:互聯網
上載者:User

配置多台伺服器時,經常需要讓各個伺服器之間的時間保持同步,如果伺服器有外網環境,可以直接同外部的時間伺服器更新時間,可以採用rdate命令更新時間:


  1. rdate -s tick.greyware.com
  可以寫個指令碼放在/etc/cron.hourly中每小時校正一下時間。   如果是內網環境下,可以自己配置一個時間伺服器,以CentOS為例,配置時間伺服器的方法如下:   1.先安裝xinetd

  1. yum install -y xinetd rdate
  2.修改/etc/xinetd.d/time-stream, 修改:     disable = yes 改為 disable = no   3.啟動xinetd

  1. service xinetd start
  這樣其它機器就可以通過rdate 與該機器進行時間同步     rdate -s ip

聯繫我們

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