首页 > 其他分享 >ntp 服务器的搭建

ntp 服务器的搭建

时间:2022-10-20 16:22:58浏览次数:49  
标签:10 127.0 16 0.1 ntp 注册表 服务器 net 搭建

windows :

系统版本:windows 10 

 Windows+r or Windows + s 搜索 regedit  打开注册表编辑器 

1、在注册表中 找到 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config 该目录,双击该目录下的 Announce Flags,把值设置成5

2、再输入注册表路径HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer,双击NtpServer下的Enabled启用文件 将值设置成1

3、命令行输入 net stop w32time ,如服务已经开启先关闭服务,随后开启服务 net start w32time (net 没有 restart 命令)

4本地测试:w32tm /stripchart /computer:127.0.0.1

报错结果:

正在跟踪 127.0.0.1 [127.0.0.1:123]。
当前时间是 2022/10/20 16:07:42。
16:07:42, 错误: 0x80072746

成功结果

当前时间是 2022/10/20 16:16:16。
16:16:16, d:+00.0002671s o:+00.0000687s  [                           *                           ]

Linux:

 

标签:10,127.0,16,0.1,ntp,注册表,服务器,net,搭建
From: https://www.cnblogs.com/orientation/p/16810293.html

相关文章