2.0 KiB
2.0 KiB
title, intro, redirect_from, versions, type, topics, shortTitle
| title | intro | redirect_from | versions | type | topics | shortTitle | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Configuring time synchronization | {% data variables.product.prodname_ghe_server %} automatically synchronizes its clock by connecting to NTP servers. You can set the NTP servers that are used to synchronize the clock, or you can use the default NTP servers. |
|
|
how_to |
|
Configure time settings |
Changing the default NTP servers
{% data reusables.enterprise_site_admin_settings.access-settings %} {% data reusables.enterprise_site_admin_settings.management-console %}
- In the "Settings" sidebar, click Time.
- Under "Primary NTP server," type the hostname of the primary NTP server.
- Under "Secondary NTP server," type the hostname of the secondary NTP server.
- Under the "Settings" sidebar, click Save settings.
- Wait for the configuration run to complete.
Correcting a large time drift
The NTP protocol continuously corrects small time synchronization discrepancies. You can use the administrative shell to synchronize time immediately.
Note
- You can't modify the Coordinated Universal Time (UTC) zone.
- You should prevent your hypervisor from trying to set the virtual machine's clock. For more information, see the documentation provided by the virtualization provider.
- Use the
chronyccommand to synchronize the server with the configured NTP server. For example:
sudo chronyc -a makestep