win7搭建NTP服务
2015-09-28 20:58
876 查看
修改注册表项
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer
Enabled 设定为 1(默认0)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\
AnnounceFlags 设定为 5 (默认 10)
Value Meaning
0 Timeserv_Announce_No, Reliable_Timeserv_Announce_No. The domain controller does not advertise time service.
1 Timeserv_Announce_Yes. The domain controller always advertises time service.
2 Timeserv_Announce_Auto. The domain controller automatically determines whether it should advertise time service.
4 Reliable_Timeserv_Announce_Yes. The domain contoller will always advertise reliable time service.
8 Reliable_Timeserv_Announce_Auto. The domain controller automatically determines whether it should advertise reliable time service.
禁用防火墙或设置例外,UDP 123端口。
运行 services.msc,将Windows Time服务设置成自动(延迟启动)
Win7下如果设置成自动,下次重启后此服务会被停止,原因不详。
经实验,延迟启动也并不需要用户登录即可启动。
重启动校时服务:net stop w32time && net start w32time
2、网络设备(如cisco、h3c交换机……)不能正常同步NTP服务器时间:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\LocalClockDispersion
值修改为0 (默认为0x0000000a)
参考地址:http://blog.sina.com.cn/s/blog_671c54fe0102v4wy.html
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer
Enabled 设定为 1(默认0)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\
AnnounceFlags 设定为 5 (默认 10)
Value Meaning
0 Timeserv_Announce_No, Reliable_Timeserv_Announce_No. The domain controller does not advertise time service.
1 Timeserv_Announce_Yes. The domain controller always advertises time service.
2 Timeserv_Announce_Auto. The domain controller automatically determines whether it should advertise time service.
4 Reliable_Timeserv_Announce_Yes. The domain contoller will always advertise reliable time service.
8 Reliable_Timeserv_Announce_Auto. The domain controller automatically determines whether it should advertise reliable time service.
禁用防火墙或设置例外,UDP 123端口。
运行 services.msc,将Windows Time服务设置成自动(延迟启动)
Win7下如果设置成自动,下次重启后此服务会被停止,原因不详。
经实验,延迟启动也并不需要用户登录即可启动。
重启动校时服务:net stop w32time && net start w32time
2、网络设备(如cisco、h3c交换机……)不能正常同步NTP服务器时间:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\LocalClockDispersion
值修改为0 (默认为0x0000000a)
参考地址:http://blog.sina.com.cn/s/blog_671c54fe0102v4wy.html
相关文章推荐
- Win7 不能运行bat
- 用注册表文件实现解开被锁定的.reg与inf文件
- 注册表导出管理员密码文件
- 修改注册表实现在桌面上显示Windows版本
- 用注册表清除3389登陆记录的方法
- 常见的注册表修改大全第1/3页
- vbscript 注册表脚本书写
- vbscript Registry 注册表操作实现代码(读写删除)
- vbs 注册表操作代码(添加删除)
- 杀毒除根 巧用注册表防止病毒重新生成
- vbs删除注册表项的代码
- 批处理操作注册表完全攻略(读取注册表/写入注册表等)
- 写给电脑初学者的一些建议(注册表篇)
- CMD下读取/修改/删除注册表项的方法
- C#实现读取注册表监控当前操作系统已安装软件变化的方法
- PowerShell使用Remove-Item命令删除文件、注册表项介绍
- C#通过windows注册表获取软件清单的方法
- C#实现将程序锁定到Win7任务栏的方法
- 读取注册表根据Office版本获取数据库连接字段
- 在DOS方式下对注册表进行操作的代码