win7设置NTP服务器,急,在线等

win7设置NTP服务器,急,在线等,第1张

在桌面上右击“计算机”,选择“管理”,然后选择“服务”。

选中“windows

time”,设置为开启,这样就可以将“windows

time”这一个服务打开。

“开始”--》“运行”--》输入“regedit”打开注册表。

找到netserver这一项

将netserver下enabled的值设置为

1。

重启电脑系统,就可以使用该电脑作为ntp服务器了。

1. 修改注册表项

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.

2. 禁用防火墙或设置例外,UDP 123端口。

3. 运行 services.msc,将Windows Time服务设置成自动(延迟启动)

Win7下如果设置成自动,下次重启后此服务会被停止,原因不详。

经实验,延迟启动也并不需要用户登录即可启动。

4. 重启动校时服务:net stop w32time &&net start w32time

网络设备(如cisco、h3c交换机……)不能正常同步NTP服务器时间:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\LocalClockDispersion

值修改为0 (默认为0x0000000a)


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/tougao/11300521.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-15
下一篇 2023-05-15

发表评论

登录后才能评论

评论列表(0条)

保存