服务器时间自动对时

作者:zqcheng    发布于7年前 (2011-08-02)    阅读:  302  次

买了台VPS可时间老出现错误,用了这个代码 观察了段时间真的不错了:-)sc config RpcLocator start= AUTO

sc config W32Time start= AUTO

net start "Remote Procedure Call (RPC) Locator"

net start "windows time"

reg add "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeTimeProvidersNtpClient" /v SpecialPollInterval /t reg_dword /d 0x00003840 /f

reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionDateTimeServers" /v 0 /t reg_sz /d 210.72.145.44 /f

reg add HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionDateTimeServers /t reg_sz /d 0 /f

添加新评论