In real work, every unit often meets the need to realize the clock unification of multiple devices. This requires the configuration of a unified NTP server. Below, we aim at some units that need to temporarily build NTP servers or do not require very accurate time to adopt the following solutions.
This operation process describes in detail how to use Windows operating system to build NTP server.
Tools / raw materials
Notebooks, desktop computers, minicomputers, all kinds of server devices and other hosts can be set up as NTP servers. The windows operating system includes WinXP, win7, win8, win10 and so on.
Methods / steps
Modify registry key. In the search box, open the registry, use the command: regedit, and the result is as follows:
Enter registry key HKEY_LOCAL_MACHINE - >SYSTEM - >CurrentControlSet - >Services - >W32Time - >TimeProviders - >NtpServer
Enabled is set to 1 to open NTP (system default 0). The result is shown in the following figure:
Enter registry key HKEY_LOCAL_MACHINE - >SYSTEM - >CurrentControlSet - >Services - >W32Time - >Config
AnnounceFlags is set to 5 (system default 10). The result is shown below:
Enter the system service, find the Windows time service, use the command: services.msc, and the result is as follows:
Set the Windows time service to auto start, click apply and confirm, and the result is shown in the following figure:
The right mouse button restarts the windows time service. The result is shown in the following figure:
Restart the computer or host, all configurations will take effect, and the NTP clock is completed. At this time, other devices will need to fill in the clock synchronization of the computer IP, and click the update to synchronize the clock. The result is as follows:
conclusion
The above configuration is to use existing Windows systems to build NTP server solutions. The biggest drawback of this solution is that there is no precise time source, which is usually manually set up, and there will be accumulated time every day. error With the accumulation of time, the error will be bigger and bigger. It will bring great influence to the work of many units. Therefore, it is recommended that you carefully choose to use it.
At present, the most commonly used is to choose the mature GPS Beidou satellite time server on the market, get standard time from the satellite, do not produce cumulative error, and provide precise and absolute time at all times.