CentOS下NTP时间服务器的架设和Windows客户端的配置(二)Linux客户端配置
2016-02-26 00:58
603 查看
Linux客户端的配置与服务器端的配置几乎一样,只是不能将本机时间做为时间服务。整个过程参考《CentOS下NTP时间服务器的架设和Windows客户端的配置(一)Linux服务器配置》一文,只需要将上文配置的服务器IP设置成本机的上级NTP服务器指向,并注释掉其中的两行。
客户端 ntp.conf 文件的配置内容如下:
CentOS下NTP时间服务器的架设和Windows客户端的配置(一)Linux服务器配置
CentOS下NTP时间服务器的架设和Windows客户端的配置(二)Linux客户端配置
CentOS下NTP时间服务器的架设和Windows客户端的配置(三)Windows客户端配置
客户端 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客户端配置
相关文章推荐
- linux下制作linux系统的安装U盘
- linux编译安装php7
- Linux精讲——文件查看命令
- selinux简介
- 如何在 Linux/Windows/MacOS 上使用 .NET 进行开发
- CentOS系统中安装MySQL和开启MySQL远程访问的方法
- centos 安装python3
- 浅谈《Linux就该这么学》
- #Linux的边边角角# 之 "EPERM"错误和setuid魔法
- linux静态库查看方法
- linux(ubuntu)2台互相ssh无密码访问
- 警告:检测到时钟错误。您的创建可能是不完整的。
- linux驱动之PWM(定时器)
- SUSE linux IP的两种配置方法
- CentOS下NTP时间服务器的架设和Windows客户端的配置(一)Linux服务器配置
- Linux精讲——mv命令
- 在CentOS上MySQL数据库服务器配置方法
- Linux添加头文件路径
- linux 后台开发类常见问题及知识点
- Linux 给用户添加sudo权限