<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>http://nas.homeli.space:9080/mediawiki/index.php?action=history&amp;feed=atom&amp;title=NTP%E6%9C%8D%E5%8A%A1%E7%AB%AF%E9%85%8D%E7%BD%AE</id>
	<title>NTP服务端配置 - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="http://nas.homeli.space:9080/mediawiki/index.php?action=history&amp;feed=atom&amp;title=NTP%E6%9C%8D%E5%8A%A1%E7%AB%AF%E9%85%8D%E7%BD%AE"/>
	<link rel="alternate" type="text/html" href="http://nas.homeli.space:9080/mediawiki/index.php?title=NTP%E6%9C%8D%E5%8A%A1%E7%AB%AF%E9%85%8D%E7%BD%AE&amp;action=history"/>
	<updated>2026-09-27T15:18:17Z</updated>
	<subtitle>本wiki的该页面的版本历史</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>http://nas.homeli.space:9080/mediawiki/index.php?title=NTP%E6%9C%8D%E5%8A%A1%E7%AB%AF%E9%85%8D%E7%BD%AE&amp;diff=1705&amp;oldid=prev</id>
		<title>2023年7月20日 (四) 07:21 LiGang</title>
		<link rel="alternate" type="text/html" href="http://nas.homeli.space:9080/mediawiki/index.php?title=NTP%E6%9C%8D%E5%8A%A1%E7%AB%AF%E9%85%8D%E7%BD%AE&amp;diff=1705&amp;oldid=prev"/>
		<updated>2023-07-20T07:21:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2023年7月20日 (四) 07:21的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;第1行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第1行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== 概述 ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;NTP服务(Network Time Protocol（NTP）)是用来使计算机时间同步化的一种协议，它可以使计算机对其服务器或时钟源（如石英钟，GPS等等)做同步化，它可以提供高精准度的时间校正（LAN上与标准间差小于1毫秒，WAN上几十毫秒），且可介由加密确认的方式来防止恶毒的协议攻击。&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;本文讲述如何开启Windows服务器的NTP服务。&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== 打开注册表编辑器 ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== 打开注册表编辑器 ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;使用组合键WIN + R 启动运行窗口，在打开的窗口中输入regedit，点击确定按钮。&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;使用组合键WIN + R 启动运行窗口，在打开的窗口中输入regedit，点击确定按钮。&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff::1.12:old-1699:rev-1705 --&gt;
&lt;/table&gt;</summary>
		<author><name>LiGang</name></author>
	</entry>
	<entry>
		<id>http://nas.homeli.space:9080/mediawiki/index.php?title=NTP%E6%9C%8D%E5%8A%A1%E7%AB%AF%E9%85%8D%E7%BD%AE&amp;diff=1699&amp;oldid=prev</id>
		<title>LiGang：建立内容为“== 打开注册表编辑器 == 使用组合键WIN + R 启动运行窗口，在打开的窗口中输入regedit，点击确定按钮。&lt;br&gt; 文件:Ntp step01 rege…”的新页面</title>
		<link rel="alternate" type="text/html" href="http://nas.homeli.space:9080/mediawiki/index.php?title=NTP%E6%9C%8D%E5%8A%A1%E7%AB%AF%E9%85%8D%E7%BD%AE&amp;diff=1699&amp;oldid=prev"/>
		<updated>2023-07-19T09:44:06Z</updated>

		<summary type="html">&lt;p&gt;建立内容为“== 打开注册表编辑器 == 使用组合键WIN + R 启动运行窗口，在打开的窗口中输入regedit，点击确定按钮。&amp;lt;br&amp;gt; 文件:Ntp step01 rege…”的新页面&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== 打开注册表编辑器 ==&lt;br /&gt;
使用组合键WIN + R 启动运行窗口，在打开的窗口中输入regedit，点击确定按钮。&amp;lt;br&amp;gt;&lt;br /&gt;
[[文件:Ntp step01 regedit.png]]&lt;br /&gt;
&lt;br /&gt;
== 修改注册表 ==&lt;br /&gt;
* 路径：HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config&amp;lt;br&amp;gt;&lt;br /&gt;
* 找到并打开Config目录，双击Config目录下的AnnounceFlags。&amp;lt;br&amp;gt;&lt;br /&gt;
[[文件:Ntp step02 Config.png]]&lt;br /&gt;
&lt;br /&gt;
* 把注册表项AnnounceFlags的值设定为5，点击确定按钮&amp;lt;br&amp;gt;&lt;br /&gt;
[[文件:Ntp step03 Config Set01.png]]&lt;br /&gt;
&lt;br /&gt;
* 路径：HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer&amp;lt;br&amp;gt;&lt;br /&gt;
* 双击NtpServer下的Enabled&amp;lt;br&amp;gt;&lt;br /&gt;
[[文件:Ntp step04 Config Set04.png]]&lt;br /&gt;
&lt;br /&gt;
* 把Enabled的值设定为1，点击确定按钮。&amp;lt;br&amp;gt;&lt;br /&gt;
[[文件:Ntp step05 Config Set02.png]]&lt;br /&gt;
&lt;br /&gt;
== 重启服务 ==&lt;br /&gt;
* 以管理员身份运行命令提示符窗口； &amp;lt;br&amp;gt;&lt;br /&gt;
* 方法：开始-找到windows系统-找到命令提示符-然后鼠标右键点击命令提示符-选择以管理员身份运行。&lt;br /&gt;
[[文件:Ntp step06 cmd administrator.png]]&lt;br /&gt;
&lt;br /&gt;
* 输入net stop w32time停止服务&amp;lt;br&amp;gt;&lt;br /&gt;
* 再输入net start w32time启动服务&amp;lt;br&amp;gt;&lt;br /&gt;
[[文件:Ntp step06 cmd restart.png]]&lt;br /&gt;
&lt;br /&gt;
== 本地测试 ==&lt;br /&gt;
* 输入命令w32tm /stripchart /computer:127.0.0.1，有时间回显说明配置成功了。&lt;br /&gt;
[[文件:Ntp step07 test.png]]&lt;br /&gt;
&lt;br /&gt;
== 开启防火墙 ==&lt;br /&gt;
* 如果服务器没有启动防火墙，此步可忽略。&amp;lt;br&amp;gt;&lt;br /&gt;
* 防火墙需要设置入站规则&amp;lt;br&amp;gt;&lt;br /&gt;
* 控制面板-&amp;gt;系统和安全-&amp;gt;windows防火墙-&amp;gt;高级设置-&amp;gt;入站规则(右键)-&amp;gt;新建规则-&amp;gt;端口-&amp;gt;下一步-&amp;gt;UDP-&amp;gt;特定本地端口：123&amp;lt;br&amp;gt;&lt;br /&gt;
* 配置好的规则如下&amp;lt;br&amp;gt;&lt;br /&gt;
[[文件:Ntp step08 set fireware.png]]&lt;/div&gt;</summary>
		<author><name>LiGang</name></author>
	</entry>
</feed>