ntp服务器配置
2014-03-11 00:00
120 查看
摘要: 关于ntp服务器的配置
1.安装ntp
2.修改/etc/ntp.conf
首先注释掉3server
添加
3.起动服务
4.成功为:
5.客户端
注:客户端首先要按装ntp。
1.安装ntp
[root@mfs1 ~]# yum install -y ntp
2.修改/etc/ntp.conf
首先注释掉3server
# Use public servers from the pool.ntp.org project. # Please consider joining the pool (http://www.pool.ntp.org/join.html). #server 0.rhel.pool.ntp.org #server 1.rhel.pool.ntp.org #server 2.rhel.pool.ntp.org
添加
# Undisciplined Local Clock. This is a fake driver intended for backup # and when no outside source of synchronized time is available. server 127.127.1.0 # local clock fudge 127.127.1.0 stratum 0
restrict 192.168.0.0 mask 255.255.255.0 nomodify notrap //ntp server 所允许同步的client的网段
3.起动服务
[root@zhangxc ~]# /etc/init.d/ntpd restart //ntpd服务端口为123 [root@zhangxc ~]# netstat -anutp udp 0 0 :::123 :::* 18891/ntpd
4.成功为:
[root@zhangxc ~]# ntpstat synchronised to local net at stratum 1 time correct to within 11 ms polling server every 1024 s
5.客户端
[root@mfs1 ~]# ntpdate 192.168.0.3 11 Mar 15:56:03 ntpdate[5390]: step time server 192.168.0.3 offset 28799.309433 sec
注:客户端首先要按装ntp。
相关文章推荐
- Centos6.5 配置NTP服务器
- CentOS 5.5 下配置NTP服务器
- ntp服务器配置及客户端时钟同步脚本
- RouterOS上配置NTP服务器失败的解决
- ntp服务器配置
- feora12 上配置NTP服务器
- redhat7.2 centos7.2怎么配置ntp服务器
- 局域网配置NTP服务器
- ntp服务器配置for linux
- NTP服务器的配置
- 配置NTP服务器以及解决RAC安装过程的报错PRVF-5439 : NTP daemon does not have slewing option "-x"
- linux 顶级ntp服务器配置
- ntp服务器搭建及客户端配置-使用阿里云
- CentOS下NTP服务器安装配置
- hadoop安装和维护04--NTP服务器,SELinux,防火墙配置
- NTP服务器配置
- NTP服务器配置(centos)
- 局域网配置NTP服务器
- CentOS NTP服务器安装与配置
- Linux服务管理之NTP服务器配置