您的位置:首页 > 运维架构 > Linux

CentOS下NTP时间服务器的架设和Windows客户端的配置(二)Linux客户端配置

2016-02-26 00:58 603 查看
  Linux客户端的配置与服务器端的配置几乎一样,只是不能将本机时间做为时间服务。整个过程参考《CentOS下NTP时间服务器的架设和Windows客户端的配置(一)Linux服务器配置》一文,只需要将上文配置的服务器IP设置成本机的上级NTP服务器指向,并注释掉其中的两行。

  客户端 ntp.conf 文件的配置内容如下:

     # For more information about this file, see the man pages  
    # ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5).  
      
    driftfile /var/lib/ntp/drift  
      
    # Permit time synchronization with out time source, but do not  
    # permit the source to query or modify the service on this system.  
    restrict default kod nomodify notrap nopeer noquery  
    restrict -6 default kod nomodify notrap nopeer noquery  
      
    # Permit all access over the loopback interface.  This could  
    # be tightened as well, but to do so would effect some of   
    # the administrative functions.  
    restrict 127.0.0.1  
    restrict -6 ::1  
      
    # Hosts on local network are less restricted.  
    #restrict 192.168.3.0 mask 255.255.255.0 nomodify notrap     #此处删除或注释掉
      
    # 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  
    #server 1.centos.pool.ntp.org  
    #server 2.centos.pool.ntp.org  
    server 192.168.3.18 perfer                  #此处修改为上文架设的服务器的IP
      
    #server 127.127.1.0                                          #此处删除或注释掉
    #fudge 127.127.1.0 stratum 8                                   #此处删除或注释掉      

    # broadcast 192.168.1.255 autokey    # broadcast server  
    # ........  


CentOS下NTP时间服务器的架设和Windows客户端的配置(一)Linux服务器配置

CentOS下NTP时间服务器的架设和Windows客户端的配置(二)Linux客户端配置

CentOS下NTP时间服务器的架设和Windows客户端的配置(三)Windows客户端配置
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: