Skip to main content

Configuring time synchronization

GitHub Enterprise 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.

Changing the default NTP servers

  1. Klicke in einem Verwaltungskonto auf GitHub Enterprise Server und dann in der rechten oberen Ecke einer beliebigen Seite auf „“.
  2. Wenn du dich nicht bereits auf der Seite „Websiteadministrator“ befindest, klicke in der oberen linken Ecke auf Websiteadministrator.
  3. Wähle auf der Randleiste „ Websiteadministrator“ die Option Verwaltungskonsole aus.
  4. In the "Settings" sidebar, click Time.
  5. Under "Primary NTP server," type the hostname of the primary NTP server.
  6. Under "Secondary NTP server," type the hostname of the secondary NTP server.
  7. Under the "Settings" sidebar, click Save settings.
  8. 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.

Notes:

  • 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 chronyc command to synchronize the server with the configured NTP server. For example:
sudo chronyc -a makestep