Changing the default NTP servers
- À partir d’un compte d’administration sur GitHub Enterprise Server, cliquez sur en haut à droite de n’importe quelle page.
- Si vous ne figurez pas déjà sur la page « Administrateur du site », dans le coin supérieur gauche, cliquez sur Administrateur du site.
- Dans la barre latérale « Administrateur de site », cliquez sur 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.
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