Windows下NTP时间服务器配置
1确定两台主机处于同一网段,能相互ping通。( 将服务器类型更改为 NTP为此,请按照下列步骤操作:
a 单击"开始",单击"运行",键入 regedit,然后单击"确定"
b 找到并单击下面的注册表子项:
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/W32Time/Parameters/Type
c 在右窗格中,右键单击"Type",然后单击"修改"
d 在"编辑值"的"数值数据"框中键入 NTP,然后单击"确定"这一步有的机器不用做 )
2设置服务器,开始菜单,输入regedit命令后打开注册表。
3修改以下选项的键
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/W32Time/TimeProviders/NtpServer内的「Enabled」设定为1,打开NTP服务器功能。(默认是不开启NTP Server服务,除非计算机升级成为域控制站)
4修改以下键值
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/W32Time/Config/AnnounceFlags设定为5,该设定强制主机将它自身宣布为可靠的时间源,从而使用内置的互补金属氧化物半导体(CMOS) 时钟。该设定强制主机将它自身宣告为可靠的时间源,从而运用内置的互补金属氧化物半导体 (CMOS) 时钟。假如要采用外面的时间服务器就用默认的 a 值即可。
5、在dos命令行执行以下命令重启Win32Time服务,确保以上修改起作用
net stop w32time
net start w32time
其他:如果该服务器和internet连接,那么为了避免服务器和internet上的ntp同步,最好追加以下配置:
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/W32Time/TimeProviders/NtpClient的「enable」设定为0 以防止作为客户端自动同步外界的时间服务
客户端配置(Run -- regedit):
1修改HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/W32Time/TimeProviders/
NtpClientSpecialPollInterval 值修改成十进制43200 (单位为秒,43200为12小时,该值为更新时间间隔)
SpecialPollTimeRemaining 值修改成[时间同步服务器],0 如:19216811,0,为ntp服务器地址
2、修改默认更新服务器
HKEY_LoCAL_MACHINE/SOFTWARE/MICROSOFT/WINDOWS/CURRENTVERSION/DATETIME/SERVERS/default
3、重启Win32Time服务: net stop w32Time net start w32Time
附一个能用NTP服务器地址:ntpsjtueducn 2021202101 (上海交通大学网络中心NTP服务器地址)(2107214544 (国家授时中心服务器IP地址)不能用真坑)
这些应该都是的,大家自已找找看有没有能用的(等于号前面的部份)。
farteinifiuiono=Norway, University of Oslo
ntplthse=Sweden, Lund Institute of Technology
timeserviceuitno=Norway, University of Tromsoe
ntp0pipexnet=UK, Cambridge
ntp0nlnet=Netherlands, Amsterdam, NLnet
ntp2pipexnet=UK, Cambridge
ntp0janet=UK, University of Cambridge Computer Laboratory
ntpcsstrathacuk=Scotland, Strathclyde University, Glasgow
ntp1strathacuk=Scotland, Glasgow, Strathclyde University
ntp2amccacuk=England, University of Manchester, Manchester
ntp4strathacuk=Scotland, Glasgow, Strathclyde University
ntp0strathacuk=Scotland, Glasgow, Strathclyde University
ntps1-1cstu-berlinde=Germany, Berlin, Technische Universitaet Berlin
ntp1pipexnet=UK, Cambridge
ntp2strathacuk=Scotland, Glasgow, Strathclyde University
ntpuniv-lyon1fr=France, Lyon, CISM
ntps1-0cstu-berlinde=Germany, Berlin, Technische Universitaet Berlin
ntp3strathacuk=Scotland, Glasgow, Strathclyde University
ntps1-0uni-erlangende=Germany, Erlangen, University Erlangen-Nuernberg
ntps1-2uni-erlangende=Germany, Erlangen, University Erlangen-Nuernberg
ntps1-1uni-erlangende=Germany, Erlangen, University Erlangen-Nuernberg
timeijssi=Slovenia, J Stefan Institute, Ljubljana
biofizmfuni-ljsi=Slovenia, University of Ljubljana
infocyf-kredupl=Poland, Academic Computer Centre, Krakow
bitsymitedu=USA, MA, Cambridge, MIT Information Systems
nicnearnet=USA, MA, Cambridge
time-bnistgov=
ntp-1ececmuedu=USA, PA, Pittsburgh, Carnegie Mellon
swisstimeethzch=Switzerland, Zurich, Integrated Systems Laboratory
time-anistgov=time-anistgov
ntp-2ececmuedu=USA, PA, Pittsburgh, Carnegie Mellon
otc1psuedu=USA, PA, Penn State University
timexpeachnetedu=USA, GA, Kennesaw, PeachNet NOC
fuzzpscedu=USA, PA, Pittsburgh, PSC Supercomputer Center
timexcscolumbiaedu=USA, NY, New York, Columbia University
vtserfccvtedu=USA, VA, Virginia Tech Computing Center
clock-1cscmuedu=USA, PA, Pittsburgh, Carnegie Mellon University
gilbrethecnpurdueedu=USA, IN, West Lafayette, Purdue University
harborecnpurdueedu=USA, IN, West Lafayette, Purdue University
moleculeecnpurdueedu=USA, IN, West Lafayette, Purdue University
nssunetumnedu=USA, MN, St Paul
nsunetumnedu=USA, MN, Minneapolis
clockpsuedu=PA, Penn State University, University Park
nocnearnet=USA, MA, Cambridge
salmonmathstcdie=Ireland, Dublin, Trinity College
ntpctrcolumbiaedu=USA, NY, New York, Columbia University
finchccukansedu=USA, Kansas University Computer Center
ntp-0csouiucedu=USA, IL, Champaign, University of Illinois
ntpmathstcdie=Ireland, Trinity College, Dublin
nssntsumnedu=USA, MN, St Paul
tockusnonavymil=USA, Washington DC, US Naval Observatory
eagletamuedu=USA, Texas A&M University
ntp5tamuedu=TX, Texas A&M University, College Station
www2cmcecgcca=Canada, Canadian Meteorological Centre, Dorval
kuhubccukansedu=USA, KN, Lawrence, Kansas University
ntp-2csouiucedu=USA, IL, Champaign, University of Illinois
zeustamuedu=USA, TX, College Station, Texax A&M
www1cmcecgcca=Canada, Canadian Meteorological Centre, Dorval
ntp-1mcsanlgov=USA, IL, Chicago, Argonne National Laboratory
ntp1cswiscedu=University of Wisconsin-Madison, Computer Science Department
tmcedu=USA, TX, Houston, Baylor College of Medicine
ntpcssgov=USA, VA, Arlington, Center for Seismic Studies
timenistgov=USA, CO, Boulder, National Center for Atmospheric Research
ntp-2mcsanlgov=USA, IL, Argonne National Laboratory
time-Atimefreqbldrdocgov=USA, CO, National Institue of Standards and Technology
ntp3cswiscedu=University of Wisconsin-Madison, Computer Science Department
clock1uncedu=USA, NC, Chapel Hill, University of North Carolina
tockcsunlvedu=USA, NV, Las Vegas, UNLV Computer Science Department
louieudeledu=USA, DE, University of Delaware
tickcsunlvedu=USA, NV, Las Vegas, UNLV Computer Science Department
cuckoonevadaedu=USA, NV, Las Vegas, University of Nevada
timenrcca=Canada, National Research Council of Canada, Ottawa
rolexpeachnetedu=USA, GA, Kennesaw, PeachNet NOC
mizbeaverudeledu=USA, DE, Newark, University of Delaware
clepsydradeccom=USA, CA, Palo Alto, DEC Research Laboratory
tickutorontoca=Canada, University of Toronto
ntpnasagov=USA, CA, NASA Ames Research Center
timelordcsureginaca=Canada, Saskatchewan, University of Regina
everestcclabsmissouriedu=USA, MO, University of Missouri-Columbia
ntpucsdedu=USA, CA, San Diego, UCSD Computer Science & Engineering
wwvbisiedu=USA, CA, Marina del Rey, USC Information Sciences Institute
tickusnonavymil=USA, Washington DC, US Naval Observatory
clockiscorg=USA, CA, Palo Alto, Internet Software Consortium
chimeutorontoca=Canada, University of Toronto
sundialcolumbiaedu=USA, NY, New York, Mornigside Campus Columbia University
ntp0cornelledu=USA, NY, Cornell University, Ithaca
ntpsaardnet=Australia, The University of Adelaide
augeanelecengadelaideeduau=Austrialia, University of Adelaide
clockncfukuoka-uacjp=Japan, Fukuoka, Fukuoka University
ntpadelaideeduau=Australia, University of Adelaide
clocktlfukuoka-uacjp=Japan, Fukuoka, Fukuoka University
timeservercsumbedu=USA, MA, Boston, University of Massachusetts
gazettebcmtmcedu=USA, TX, Houston, Baylor College of Medicine
1、首先使用组合键WINR启动运行窗口,在打开的窗口中输入regedit,点击确定按钮。
2、输入HKEY_LOCAL_MACHINESYSTEM\ServicesW32TimeConfig,找到Config目录,双击Config目录下的。
3、把注册表项的值设定为5,点击确定按钮。
4、HKEY_LOCAL_MACHINESYSTEM\ServicesW32TimeTimeNtpServer,再输入注册表路径,双击NtpServer下的Enabled文件。
5、把Enabled的值设定为1,点击确定按钮。
6、然后打开命令提示符窗口,输入netstopw32time停止服务,再输入netstartw32time启动服务。
7、输入命令w32tm/stripchart/computer:127001,有时间回显说明配置成功了。
萤石云ntp校时服务器地址:timeys7com。
NTP校时:录像机可以通过NTP服务器进行校时,一般有以下两种情况:
第一种,自建NTP服务器,一般有设置网络时间服务器地址的选项,填上就可以了,自动同步。
第二种,设备如果连接到外网,可以通过国家校时服务器校时,地址2107214544,NTP端口123。也可以用上海交大NTP服务器地址2021202101。也可以使用别的校时服务器。
启用NTP,校时时间间隔默认是60分钟,可以在1-10800分钟范围调节。
可以自己设置的,用gpeditmsc打开组策略,计算机配置-系统-windows时间服务-时间提供程序,右边“启用windows NTP客户端”设为“已启用”,“配置windows NTP客户端”设为“已启用”,“NTP Server”可以设自己想要的ip,建议用2107214544
0条评论