Skip to main content

Cette version de GitHub Enterprise Server ne sera plus disponible le 2026-03-17. Aucune publication de correctifs n’est effectuée, même pour les problèmes de sécurité critiques. Pour de meilleures performances, une sécurité améliorée et de nouvelles fonctionnalités, effectuez une mise à niveau vers la dernière version de GitHub Enterprise. Pour obtenir de l’aide sur la mise à niveau, contactez le support GitHub Enterprise.

Configuration de la synchronisation de l’heure

GitHub Enterprise Server synchronise automatiquement son horloge en se connectant aux serveurs NTP. Vous pouvez définir les serveurs NTP à utiliser pour synchroniser l’horloge, ou utiliser les serveurs NTP par défaut.

Default NTP servers

We recommend configuring your own preferred NTP servers. The default NTP server values on GitHub Enterprise Server are the following:

  • Primary Server: 0.github.pool.ntp.org
  • Secondary Server: 1.github.pool.ntp.org

You must ensure that the NTP servers (configured or default) are reachable on UDP port 123. For more details on the network ports that need to be open, see Network ports.

Changing the default NTP servers

  1. From an administrative account on GitHub Enterprise Server, in the upper-right corner of any page, click .
  2. If you're not already on the "Site admin" page, in the upper-left corner, click Site admin.
  3. In the " Site admin" sidebar, click Management Console.
  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 (optional)", 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.

Remarque

  • 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