Skip to main content

Эта версия GitHub Enterprise Server была прекращена 2024-03-26. Исправления выпускаться не будут даже при критических проблемах безопасности. Для повышения производительности, повышения безопасности и новых функций выполните обновление до последней версии GitHub Enterprise Server. Чтобы получить справку по обновлению, обратитесь в службу поддержки GitHub Enterprise.

Настройка синхронизации времени

GitHub Enterprise Server автоматически синхронизирует часы путем подключения к NTP-серверам. Можно задать NTP-серверы, используемые для синхронизации часов, или использовать NTP-серверы по умолчанию.

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," 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