This topic describes how to enable and configure the NTP service for a Windows instance to ensure that the local system time is precisely synchronized.
Background information
By default, ECS instances in all Alibaba Cloud regions use UTC+8. You can configure or change time zones for your instances.
Windows Server 2012 R2 Datacenter Edition 64-bit is used in this topic to demonstrate how to use the NTP service to synchronize the local system time for Windows instances.
Enable the NTP service
By default, the Windows Time service is enabled on Windows Server operating systems. The NTP service must be enabled for Windows instances to synchronize the local system time. Perform the following operations to check and enable the NTP service:
- Connect to the Windows ECS instance. For more information, see Overview.
- Click the
icon and open the Run dialog box. Run the
services.msc
command in the Run dialog box. - In the Services dialog box, find and double-click Windows Time.
- In the Windows Time Properties (Local Computer) dialog box, perform the following operations:
- Set Startup type to Automatic.
- Make sure that the value of Service status is Running. Otherwise, click Start.
- Click Apply and then click OK.
Modify the default NTP server address
By default, Windows Server operating systems use the Microsoft NTP server (time.windows.com), but errors may occur while the operating systems are synchronizing with the Microsoft NTP server. When you use a Windows instance, you can replace the default NTP server with an internal NTP server provided by Alibaba Cloud. Perform the following operations to modify the default NTP server address:
- Connect to the Windows ECS instance. For more information, see Overview.
- In the notification area of the taskbar, click the date and time, and then click Change date and time settings.
- In the Date and Time dialog box, click the Internet Time tab and then click Change settings.
- In the Internet Time Settings dialog box, select Synchronize with an Internet time server, enter the address of an Alibaba Cloud internal NTP server, and then click Update now. For more information, see Alibaba Cloud NTP server.
Modify the NTP synchronization interval
The default NTP synchronization interval is five minutes. You can modify the interval. Perform the following operations to modify the NTP synchronization interval: