* New Crowdin translations by Github Action * Reset broken translated files to English * Ran script/i18n/homogenize-frontmatter.js * Ran script/fix-translation-errors.js * Reverted translated files with parsing and rendering errors * fix malformed liquid * add next directory to exclude list * currentversion -> currentVersion * fix liquid errors * fix liquid errors * Reset broken translated files to English * Ran script/i18n/homogenize-frontmatter.js * Revert /ja/github/authenticating-to-github/about-authentication-with-saml-single-sign-on * Reset known broken translation files LAST * Run script/i18n/homogenize-frontmatter.js Co-authored-by: Crowdin Bot <support+bot@crowdin.com> Co-authored-by: Rachael Sewell <rachmari@github.com> Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
47 lines
2.3 KiB
Markdown
47 lines
2.3 KiB
Markdown
---
|
|
title: Configuring time synchronization
|
|
intro: '{% 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.'
|
|
redirect_from:
|
|
- /enterprise/admin/articles/adjusting-the-clock/
|
|
- /enterprise/admin/articles/configuring-time-zone-and-ntp-settings/
|
|
- /enterprise/admin/articles/setting-ntp-servers/
|
|
- /enterprise/admin/categories/time/
|
|
- /enterprise/admin/installation/configuring-time-synchronization
|
|
- /enterprise/admin/configuration/configuring-time-synchronization
|
|
versions:
|
|
enterprise-server: '*'
|
|
type: how_to
|
|
topics:
|
|
- Enterprise
|
|
- Fundamentals
|
|
- Infrastructure
|
|
- Networking
|
|
---
|
|
|
|
### Changing the default NTP servers
|
|
|
|
{% data reusables.enterprise_site_admin_settings.access-settings %}
|
|
{% data reusables.enterprise_site_admin_settings.management-console %}
|
|
2. In the left sidebar, click **Time**. 
|
|
3. Under "Primary NTP server," type the hostname of the primary NTP server. Under "Secondary NTP server," type the hostname of the secondary NTP server. 
|
|
4. At the bottom of the page, click **Save settings**. 
|
|
5. 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.
|
|
|
|
{% endnote %}
|
|
|
|
- Use the `chronyc` command to synchronize the server with the configured NTP server. Например:
|
|
|
|
```shell
|
|
$ sudo chronyc -a makestep
|
|
```
|