zoukankan      html  css  js  c++  java
  • 时间同步

    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesW32TimeParameters]
    "NtpServer"="timeurl.tencent.com,0x9"


    [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesW32TimeTimeProvidersNtpClient]
    "SpecialPollInterval"=dword:00000384
    "SpecialPollTimeRemaining"=hex(7):74,00,69,00,6d,00,65,00,75,00,72,00,6c,00,2e,
    00,74,00,65,00,6e,00,63,00,65,00,6e,00,74,00,2e,00,63,00,6f,00,6d,00,2c,00,
    37,00,63,00,39,00,39,00,34,00,30,00,34,00,00,00,00,00,00,00,00,00,00,00,00,
    00,00,00,00,00,00,00,00,00,00,00,00,00

    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionDateTimeServers]
    @="0"
    "1"="time.windows.com"
    "2"="time.nist.gov"
    "3"="time-nw.nist.gov"
    "4"="time-a.nist.gov"
    "5"="time-b.nist.gov"
    "0"="timeurl.tencent.com"
     
     
     
    "NtpServer"="timeurl.tencent.com,0x9"  此处设定时间同步服务器
    "SpecialPollInterval"=dword:00000384   此处设定同步频率  秒 16进制
    SpecialPollTimeRemaining 可以不设置 重启时间服务 自动同步NtpServer的值
    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionDateTimeServers] 设定时间同步界面上显示的列表和默认值
     
     

    将HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeParameters内的NtpServer设定为timeurl.tencent.com,0x9
    将HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeTimeProvidersNtpClient内的SpecialPollTimeRemaining设定为timeurl.tencent.com,7c99404

    若只设定NtpServer项,在重启两次w32time后SpecialPollTimeRemaining项也会自动修改。
    若只设定SpecialPollTimeRemaining项,在重启w32time后,NtpServer项设置自动原还。
    所以只须设定NtpServer项,重启两次w32time即可。


    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeTimeProvidersNtpClient内的SpecialPollInterval设定为900    十进制
  • 相关阅读:
    【原】从/dev/null重新打开标准输出
    Go 接口转换的一个例子
    关于软件编译安装的出错处理
    【原】GO 语言常见错误
    HP平台由于变量声明冲突导致程序退出时的core
    动态链接库加载出错:cannot restore segment prot after reloc: Permission denied
    Windows VC++常见问题汇总
    .net:System.Web.Mail vs System.Net.Mail应该用哪个
    网络管理的功能
    Hello World! — 用 Groovy 编写的 Java 程序
  • 原文地址:https://www.cnblogs.com/sherlock99/p/4209574.html
Copyright © 2011-2022 走看看