windows时间服务器设置方法TimeService

合集下载

windows服务器NTP服务自动对时服务开启方法

windows服务器NTP服务自动对时服务开启方法

windows服务器NTP自动对时服务开启方法和应用第1章开启服务器NTP服务1.打开系统“服务”选项,双击打开“Windows Time”服务2.在系统服务中设置W32Time服务启动模式为自动3.点击运行或者win+R调出运行窗口,输入regedit打开Windows注册表4.在注册表找到如下位置HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Ti me\Config找到AnnounceFlags 双击修改值为5保存5.在注册表找到如下位置HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Ti me\TimeProviders\NtpServer找到Enable并修改其值为16.键盘“win+R”,打开系统CMD命令(注意一定要以管理员身份运行)在命令提示符中输入:net stop w32Time,回车等待NTP服务停止。

然后再输入:net start w32Time,回车启动NTP服务。

7.系统提示“Windows Time 服务已经启动成功”即说明NTP服务已正常启动。

第2章设置硬盘录像机的NTP自动对时服务1)硬盘录像机须和服务器设置在同一网段。

2)登录硬盘录像机后台,找到“系统设置”→“时间配置”→“NTP校时”3)输入服务器的IP,NTP端口固定为123,校时时间间隔设置为1分钟。

4)设置完成后,等待一分钟硬盘录像机的时间自动与服务器时间同步,说明NTP功能开启成功。

第3章其他应用方向1)为其他局域网内的电脑提供授时功能。

2)能为局域网内摄像头提供NTP授时服务(摄像头须支持NTP功能)。

Windows-NTP服务配置说明书

Windows-NTP服务配置说明书

Windows-NTP服务配置目录目录 (1)1简述 (3)2准备 (3)2.1开启时间服务 (4)2.1.1进入管理界面 (4)2.1.2启动Windows Time服务 (4)2.2名词解释 (5)3配置 NTP_Server (5)3.1关闭Windows防火墙 (5)3.2修改注册表 (5)3.2.1注册表备份 (6)3.2.2设定主机为可靠时间源 (6)3.2.3修改时间类型为NTP (8)3.2.4启动NtpClient (9)3.2.5启动NtpServer (10)3.3编辑本地组策略 (11)3.3.1打开时间提供程序页面 (11)3.3.2启用NTP客户端和服务器 (12)3.3.3配置NTP客户端 (13)3.4重启时间服务 (14)3.5电脑时间更改配置(可不配) (15)3.5.1更改日期和时间设置 (15)3.5.2更改设置 (15)3.5.3修改服务器地址 (16)4 NTP_Client配置 (17)4.1关闭Windows防火墙 (17)4.2修改注册表 (17)4.2.1注册表备份 (17)4.2.2设定主机为可靠时间源 (17)4.2.3设置NTP_Server地址并修改时间类型为NTP (18)4.2.4启动NtpClient (19)4.2.5关闭NtpServer (20)4.3编辑本地组策略 (21)4.3.1打开时间提供程序 (21)4.3.2启用NTP客户端 (22)4.3.3配置NTP客户端 (23)4.4重启时间服务 (24)4.5电脑时间更改配置(可不配) (25)4.5.1更改日期和时间设置 (25)4.5.2更改设置 (25)4.5.3修改服务器地址 (26)5配置注意事项 (27)5.1电脑时间更改配置 (27)5.2相关注册表项说明 (28)1简述NTP(Network Time Protocol,网络时间协议)是用来使网络中的各个计算机时间同步的一种协议。

windows自带NTP校时服务配置

windows自带NTP校时服务配置

windows自带NTP校时服务配置Windows 2008和win7下开启网络对时方法1、启用NTPServer。

为此,请按照下列步骤操作:a. 单击“开始”,单击“运行”,键入“regedit”,然后单击“确定”进入注册表;b. 找到并单击下面的注册表子项:HKEY_LOCAL_MACHINE----SYSTEM----CurrentControlSet----Services----W32Time----TimeProviders----NtpServerc. 在右窗格中,右键单击“Enabled”,然后单击“修改”;d. 在“编辑DWORD 值”的“数值数据”框中键入“1”,然后单击“确定”;e. 关闭“注册表编辑器”。

2、为Windows对时服务添加防火墙规则。

为此,请按照下列步骤操作:a. 打开“控制面板”;b. 打开“控制面板”中的“管理工具”,找到“高级安全Windows 防火墙”,运行;c. 单击左边的“入站规则”,在菜单项“操作”中,选择“新建规则”菜单;d. “规则类型”中,选择“端口”,点击“下一步”;e. “协议和端口”中,选择“udp”协议,“特定本地端口”,端口号“123”,点击“下一步”;f. “操作”和“配置文件”选项保持默认设置,点击“下一步”;g. 在“名称”和“描述”中填入规则的名称及描述,点击“完成”。

3、重新启动Windows Time服务。

为此,请按照下列步骤操作:a. 打开“控制面板”;b. 打开“控制面板”中的“管理工具”,找到“服务”,运行;c. 在服务列表中找到“Windows Time”服务,右键单击,在菜单中选择“停止”,再次单击右键,在菜单中选择“启用”。

经过上述步骤,即可使用NTP对时服务。

如何在Windows系统中设置和管理系统时间和日期

如何在Windows系统中设置和管理系统时间和日期

如何在Windows系统中设置和管理系统时间和日期在Windows系统中,设置和管理系统时间和日期非常简单。

正确的时间和日期设置对于计算机的正常运行和准确记录非常重要。

在本文中,我们将介绍如何在Windows系统中进行时间和日期的设置和管理。

一、设置系统时间和日期要设置系统时间和日期,您可以按照以下步骤进行操作:1. 打开系统托盘上的时间和日期显示,通常位于任务栏的右下角。

您可以通过单击显示的时间来打开日期和时间设置窗口。

2. 在日期和时间设置窗口中,您可以更改日期和时间。

选择正确的日期和时间,并确保时区设置正确。

3. 一旦更改了日期和时间,单击“确定”按钮保存更改。

使用上述步骤,您可以在Windows系统中轻松设置系统的时间和日期。

然而,现在我们将继续介绍如何管理系统时间和日期。

二、管理系统时间和日期在Windows系统中,您可以执行以下操作来管理系统时间和日期。

1. 自动同步时间Windows系统提供了自动同步时间的功能,它可以通过与Internet 时间服务器同步来确保系统时间的准确性。

要启用此功能,请按照以下步骤进行操作:- 打开日期和时间设置窗口,如上述步骤所示。

- 切换到“Internet时间”选项卡。

- 选中“与Internet时间服务器同步”复选框。

- 从下拉菜单中选择一个时间服务器。

- 单击“确定”按钮保存更改。

2. 更改日期和时间格式Windows系统允许您自定义日期和时间的格式。

按照以下步骤进行操作:- 打开日期和时间设置窗口。

- 点击“更改日期和时间格式”链接。

- 在弹出的窗口中,您可以选择不同的日期和时间格式。

您还可以根据需要更改其他相关设置,例如使用12小时制还是24小时制。

- 单击“应用”按钮保存更改。

3. 调整时区设置在Windows系统中,时区设置非常重要,因为它决定了系统显示的时间是基于哪个时区的。

如果您处于不同的时区,您可以按照以下步骤调整时区设置:- 打开日期和时间设置窗口。

如何在Windows系统中设置系统日期和时间

如何在Windows系统中设置系统日期和时间

如何在Windows系统中设置系统日期和时间在Windows系统中设置系统日期和时间Windows操作系统是目前最常用的计算机操作系统之一,它提供了各种功能和设置选项,以方便用户自定义和管理计算机的各种参数。

其中,设置系统日期和时间是一项基本的功能之一。

本文将介绍如何在Windows系统中进行日期和时间的设置。

1. 打开日期和时间设置窗口首先,我们需要打开“日期和时间设置”窗口。

在任务栏的右下角,可以看到系统托盘中的日期和时间显示区域。

单击该区域,会弹出一个快捷菜单。

在快捷菜单中,选择“调整日期/时间”选项,即可打开日期和时间设置窗口。

2. 更改日期和时间在日期和时间设置窗口中,我们可以看到当前的日期和时间。

要更改日期,只需单击日期区域,然后选择合适的日期。

要更改时间,单击时间区域,然后选择合适的时间。

在选择日期和时间后,单击“确定”按钮以保存更改。

3. 设置时区除了日期和时间之外,时区设置也是非常重要的。

在日期和时间设置窗口中,我们可以看到当前的时区。

如果需要更改时区,只需单击“时区”选项卡,然后从下拉菜单中选择合适的时区。

最后,单击“应用”按钮以保存更改。

4. 启用自动时间设置在Windows系统中,还可以选择启用自动时间设置功能。

这样,系统会自动与互联网时间服务器同步,确保系统的日期和时间始终准确。

在日期和时间设置窗口的“Internet 时间”选项卡中,勾选“自动与互联网时间服务器同步”复选框。

然后,可以选择一个可靠的互联网时间服务器,或者使用默认的服务器。

最后,单击“更新现在”按钮以立即更新日期和时间。

5. 其他高级设置除了基本的日期和时间设置之外,Windows系统还提供了一些高级的设置选项。

例如,我们可以更改日期和时间的显示格式,调整闹钟和提醒功能,以及设置夏令时等。

在日期和时间设置窗口的其他选项卡中,可以根据个人需求进行相应的设置。

总结:通过以上步骤,我们可以轻松地在Windows系统中设置系统日期和时间。

Windows服务器NTP时间同步操作方法

Windows服务器NTP时间同步操作方法

Windows服务器NTP时间同步操作方法Windows服务器NTP时间同步操作方法主服务器端设置(NTP服务器,手动把日期和时间设置好)1、修改注册表以下项的键值在运行中输入“regedit”,打开注册表编辑器HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32time\\TimeProviders\\NtpServer在右侧的“Enabled”右击选择“修改”,数值数据设置为“1”,点击确定。

(打开时间同步服务功能)2、修改以下键值HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32time\\Config在右侧的“AnnounceFlags”右击选择“修改”,数值数据设置为“5”,点击确定。

(表示强制主机将它自身宣布为可靠的时间源,从而使用CMOS时钟。

如果设置为“a”,则表示为采用外面的时间服务器)3、更改同步时间(3天)HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\Services \\W32time\\TimeProviders\\NtpClient在右侧的“SpecialPollInterval”右击选择“修改”,基数选择“十进制”,数值数据设置为“259200”,点击确定。

(系统时间每3天和时间服务器校准一次)4、重启Win32Time服务执行如下命令:在运行中输入“cmd”,输入net stop w32time && net start w32time 回车从服务器(需要时间同步的服务器)1、更改同步时间(3天)在运行中输入“regedit”,打开注册表编辑器HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\Services \\W32time\\TimeProviders\\NtpClient在右侧的“SpecialPollInterval”右击选择“修改”,基数选择“十进制”,数值数据设置为“259200”,点击确定。

Windows系统如何设置系统日期和时间

Windows系统如何设置系统日期和时间

Windows系统如何设置系统日期和时间Windows操作系统提供了简便的设置方法,用于调整系统的日期和时间。

通过几个简单的步骤,您可以准确地设置Windows系统的日期和时间。

本文将详细介绍如何进行这些设置。

1. 打开“日期和时间”设置界面要设置Windows系统的日期和时间,首先需要打开“日期和时间”设置界面。

有几种方法可以打开该界面:- 方法一:单击任务栏上的时间和日期显示。

- 方法二:在搜索栏中输入“日期和时间”,然后选择“日期和时间设置”选项。

2. 调整日期设置在“日期和时间”设置界面中,您可以看到当前的日期和时间。

要调整日期设置,请按照以下步骤进行操作:- 单击“更改日期和时间格式”链接,以更改日期的显示格式。

您可以选择不同的日期格式来适应您的需求。

- 单击“更改日期和时间”按钮,以打开日期设置对话框。

- 在对话框中,选择所需的日期,并单击“确定”保存更改。

3. 调整时间设置在“日期和时间”设置界面中,您还可以调整系统的时间设置。

请按照以下步骤进行操作:- 单击“更改日期和时间格式”链接,以更改时间的显示格式。

您可以选择12小时制或24小时制来显示时间。

- 在“时间”部分,单击“更改时间”按钮,以打开时间设置对话框。

- 在对话框中,选择所需的时间,并单击“确定”保存更改。

4. 自动同步日期和时间Windows系统还提供了自动同步日期和时间的选项,以确保系统时间的准确性。

要启用自动同步功能,请按照以下步骤进行操作:- 返回“日期和时间”设置界面。

- 在“互联网时间”部分,单击“更改设置”按钮。

- 在对话框中,选中“与互联网时间服务器同步”复选框。

- 从下拉菜单中选择最适合您所在地区的时间服务器,并单击“更新现在”按钮,以手动同步日期和时间。

- 单击“确定”保存更改。

5. 其他日期和时间设置Windows系统还提供了其他日期和时间设置选项,以满足用户的个性化需求。

以下是一些常见的设置选项:- 选择不同的时区:在“时区”选项卡中,您可以选择适合您所在地区的时区。

windows时间服务器搭建方法

windows时间服务器搭建方法

简介:本文介绍了时间服务器常用的二种协议:SNTP和TIME,并就局域网环境下各种系统(Linux、Windows98.2000、XP)时间服务器的设置分别进行了说明,最终实现整个局域网环境下所有电脑时钟的同步与校准。

一、什么是网络时间服务网络时间服务Net Time Service与网络文件下载服务FTP、网络浏览服务WWW等一样,是一种网络服务,提供网络时间服务的电脑叫网络时间服务器。

本文主要介绍一台电脑如何通过网络获取上级时间服务器提供的标准时间,再服务于本局域网(当然也可以对外网,但需要映射内部服务器),使局域网内的所有电脑都能与服务器时间保持同步,时间误差一般小于0.5秒。

TCP/IP协议中,用于同步时间的协议为NTP协议,NTP是一个跨越广域网或局域网的复杂的同步时间协议,属于TCP/IP协议范畴。

它是由美国德拉瓦大学的David L.Mills教授于1985年提出,除可以估算封包在网络上的往返延迟外,还可独立地估算计算机时钟偏差,从而实现在网络上的高精准度计算机校时,用来在Internet上使不同的机器能维持相同时间。

时间服务器(Time Server)是利用NTP的一种服务器,通过它可以使网络中的电脑保持时间同步,通常可获得毫秒级的精度。

SNTP(Simple Network Time Protocol,简单网络时间协议)是NTP的一个子集,目的是为了那些不需要NTP实现复杂性网络时间同步的主机。

通常用于局域网上的若干台主机通过互联网与其他的NTP主机同步时钟,接着再向局域网内其他客户端提供时间同步服务。

SNTP一般使用UDP的123端号,Linux系统和Windows系统都支持它,是现在架设网络时间服务器的主流协议。

Time Protocol (RFC-868)协议是一种较简单的协议。

此协议提供了一个独立于站点的,机器可读的日期和时间信息。

时间服务返回的是从1900年1月1日午夜到现在的秒数。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Configuring Windows Time service to use an internal hardware clockTo configure the Windows Time service to use an internal hardware clock, you can change the announce flag on the authoritative time server. Changing the announce flag forces the computer to announce itself as a reliable time source and to use the built-in complementary metal oxide semiconductor (CMOS) clock. To configure the Windows Time service to use an internal hardware clock, follow these steps.Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.1.Click Start, click Run, type regedit, and then click OK.2.Locate and then click the following registry entry:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\3.In the right pane, right-click AnnounceFlags, and then click Modify.4.In the Edit DWORD Value dialog box, under Value data, type 5, and then click OK.5.Enable NTPServer.a.Locate and then click the following registry subkey:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer\b.In the right pane, right-click Enabled, and then click Modify.c.In the Edit DWORD Value dialog box, type 1 under Value data, and then click OK.Exit Registry Editor.At the command prompt, type the following command to restart the Windows Time service, and then press ENTER:net stop w32time && net start w32timeTo reset the local computers' time against the time server, run the following command on all the computers except the time server:w32tm /resync /rediscoverNote You must not configure the time server to synchronize with itself. If you configure the time server to synchronize with itself, the following events are logged in the Application log:The time provider NtpClient cannot reach or is currently receiving invalid time data from 192.168.1.1(ntp.m|0x0|192.168.1.1:123->192.168.1.1:123).No response has been received from Manual peer 192.168.1.1 after 8 attempts to contact it. This peer will be discarded as a time source and NtpClient will attempt to discover a new peer from which to synchronize.The time provider NtpClient is configured to acquire time from one or more time sources. However, none of the sources are currently accessible. No attempt to contact a source will be made for 960 minutes. NtpClient has no source of accurate time.When the time server runs by using an internal time source, the following event is logged in the Application log:Time Provider NtpClient: This machine is configured to use the domain hierarchy to determine its time source, but it is the PDC emulator for the domain at the root of the forest, so there is no machine above it in the domain hierarchy to use as a time source. We recommend that you either configure a reliable time service in the root domain, or that you manually configure the PDC to synchronize with an external time source. Otherwise, this computer will function as the authoritative time source in the domain hierarchy. If an external time source is not configured or used for this computer, you may choose to disable the NtpClient.This text notifies you that the time server is configured not to use an external time source and that the time server can be ignored.For more information about the w32tm command, type the following command at a command prompt:w32tm /?RegistryMaxPosPhaseCorrectionEntryPath HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\ConfigNotes This entry specifies the largest positive time correction in seconds that the service makes. If the service determines that a change larger than this is required, it logs an event. Special case:0xFFFFFFFF means always make time correction. The default value for domain members is0xFFFFFFFF. The default value for stand-alone clients and servers is 54,000 (15 hours).MaxNegPhaseCorrectionRegistryEntryPath HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\ConfigNotes This entry specifies the largest negative time correction in seconds that the service makes. If the service determines that a change larger than this is required, it logs an event instead. Specialcase: -1 means always make time correction, The default value for domain members is0xFFFFFFFF. The default value for stand-alone clients and servers is 54,000 (15 hours).MaxPollIntervalRegistryEntryPath HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\ConfigNotes This entry specifies the largest interval, in log seconds, allowed for the system polling interval.Note that while a system must poll according to the scheduled interval, a provider can refuse toproduce samples when requested. The default value for domain members is 10. The default value for stand-alone clients and servers is 15.SpecialPollIntervalRegistryEntryPath HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient Notes This entry specifies the special poll interval in seconds for manual peers. When the SpecialInterval 0x1 flag is enabled, W32Time uses this poll interval instead of a poll interval determine by theoperating system. The default value on domain members is 3,600. The default value on stand-alone clients and servers is 604,800.MaxAllowedPhaseOffsetRegistryEntryPath HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\ConfigNotes This entry specifies the maximum offset, in seconds, for which W32Time attempts to adjust the computer clock by using the clock rate. When the offset exceeds this rate, W32Time sets thecomputer clock directly. The default value for domain members is 300. The default value forstand-alone clients and servers is 1.。

相关文档
最新文档