折腾了半天,里标记一下,以备后用。
一、同步环境
1、ntp客户端:windows7,关闭了防火墙,ip:192.168.1.101
2、ntp服务端:windows7下虚拟机redhat5.5,关闭了防火墙+selinux,ip:192.168.1.105
二、NTP服务端步骤:
1、cd /etc && cp ntp.conf ntp.bak.conf
2、vi ntp.conf
(1)找到restrict开始的部分,删除之,改为以下三行:
restrict default kod nomodify notrap nopeer noquery
restrict 127.0.0.1
restrict 192.168.1.0 mask 255.255.255.0 nomodify
restrict 127.0.0.1
restrict 192.168.1.0 mask 255.255.255.0 nomodify
(2)找到:
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
添加以下3条NTP时间服务器
server s1b.time.edu.cn
server s1a.time.edu.cn
server 210.72.145.44
参考:国内常用NTP服务器地址及IP:http://www.douban.com/note/171309770/

本文档详细记录了如何在Linux环境中设置NTP服务器,并指导Windows7客户端进行时间同步。首先,关闭防火墙和SELinux的Linux虚拟机作为NTP服务器,修改ntp.conf文件添加国内NTP服务器地址。接着,在Windows客户端通过组策略编辑器进行时间同步设置。
最低0.47元/天 解锁文章
2802

被折叠的 条评论
为什么被折叠?



