顯示具有 NTP 標籤的文章。 顯示所有文章
顯示具有 NTP 標籤的文章。 顯示所有文章

2016年2月12日 星期五

Windows Server 2012架設NTP時間伺服器(2) 於services.msc 啟動服務

於regedit.exe修改 數值

於桌面右上角按鍵至"Search",並輸入"services.msc"

於Services視窗連按兩下"Windows Time"

於"Windows Time Properties"視窗"General"內Startup type選擇"Automatic"後按下"Start"按鈕,待Service status轉為Running時, 然後按一下"Apply", 最後按一下"OK"

"Windows Time"服務狀態為"Running"即可


步驟2 (於services.msc 啟動 服務) 完成!!

Windows Server 2012架設NTP時間伺服器(1) 於regedit.exe修改數值

架設NTP Server顧明思義,就是Sync Time,特別是工程信息公司,Time Sync是絕對、一定、十分重要的,因為資料轉換過程的紀錄時間不容有偏差(~300ms還是可接受的)。以下就是教學:

於regedit.exe修改 數值

於桌面右上角按鍵至"Search",並輸入"regedit"及選擇"regedit.exe"

出現"Registry Editor"後,於左方樹狀列選取(HKEY_LOCAL_MACHINE --> SYSTEM -->CurrentControlSet --> Services --> W32Time)

更改資料夾"Config"的數值至下圖

AnnounceFlags

5

MaxPosPhaseCorrection

ffffffff

MaxNegPhaseCorrection

ffffffff

 

更改資料夾"Parameters"的數值至下圖

NtpServer

stdtime.gov.hk,0x1 time.windows.com,0x2

Type

NTP



更改資料夾"TimeProviders"內"NtpClient"的數值至下圖

SpecialPollInterval

180



更改資料夾"TimeProviders"內"NtpServer"的數值至下圖


Enabled

1

 



步驟1 (於regedit.exe修改 數值) 完成!!



Windows Server 2012架設NTP時間伺服器(3) 設定防火牆

設定防火牆

於桌面右上角按鍵至"Search",並輸入"firewall",選取"Windows Firewall"

於"Windows Firewall"視窗按下"Advanced Settings"

於"Windows Firewall with Advanced Security"視窗按一下"Inbound Rules"

按下"New Rule..."

於"New Inbound Rule Wizard"視窗按一下"Port"的圈圈,再按"Next"

按一下"UDP"的圈圈及於"Specific local ports"輸入"123" ,再按"Next"

按一下"Allow the connection"的圈圈,再按"Next"

全部剔,再按"Next"

於"Name"輸入"Time Sync Server" ,再按"Finish"

出現下圖情況即可



步驟3 (設定防火牆) 完成!!

Windows Server 2012 NTP時間伺服器 架設完成!!