久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      Linux下使用chrony代替ntpd時間同步服務器

      Chrony是一個開源的自由軟件,它能保持系統(tǒng)時鐘與時鐘服務器(NTP)同步,讓時間保持精確。

      它由兩個程序組成:chronyd和chronyc。

      chronyd是一個后臺運行的守護進程,用于調(diào)整內(nèi)核中運行的系統(tǒng)時鐘和時鐘服務器同步。

      它確定計算機增減時間的比率,并對此進行補償。

      對于孤立系統(tǒng),用戶可以手動周期性的輸入正確時間(通過chronyc)。

      在這兩種情況下,chronyd決定計算機快慢的比例,并加以糾正。

      chronyd實現(xiàn)了NTP協(xié)議并且可以作為服務器或客戶端。

      chronyc是用來監(jiān)控chronyd性能和配置其參數(shù)的用戶界面。

      他可以控制本機及其他計算機上運行的chronyd進程。

      本次主要講一下Chrony的安裝與配置:

      【服務器端】

      •安裝

      yum install -y chrony

      •編輯配置文件

      vim /etc/chrony.conf

      # Use public servers from the pool.ntp.org project.

      # Please consider joining the pool (http://www.pool.ntp.org/join.html).

      server 0.CentOS.pool.ntp.org iburst

      server 1.centos.pool.ntp.org iburst

      server 2.centos.pool.ntp.org iburst

      server 3.centos.pool.ntp.org iburst

      使用NTP服務器的主機名或者IP地址替換 NTP_SERVER 。配置支持設置多個 server 值,默認使用上面四個。

      allow 192.168.128.0/24

      允許客戶端訪問

      •重啟服務

      systemctl enable chronyd

      systemctl start chronyd

      •檢查時間同步

      chronyc sources

      Linux下使用chrony代替ntpd時間同步服務器

      【客戶端】

      •安裝

      yum install -y chrony

      •編輯配置文件

      vim /etc/chrony.conf

      # Use public servers from the pool.ntp.org project.

      # Please consider joining the pool (http://www.pool.ntp.org/join.html).

      # server 0.centos.pool.ntp.org iburst

      # server 1.centos.pool.ntp.org iburst

      # server 2.centos.pool.ntp.org iburst

      # server 3.centos.pool.ntp.org iburst

      server controller2.service iburst

      注釋掉這四個 NTP_SERVER,使用我們自己的服務器端的IP作為NTP_SERVER 。

      •重啟服務

      systemctl enable chronyd

      systemctl start chronyd

      •檢查時間同步

      chronyc sources

      Linux下使用chrony代替ntpd時間同步服務器

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號