Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMAG and version 7.12
Sv translation
languageru

  1. Установите системное время с помощью команды date. Например, для установки 11 сентября 2013 13:30 запустите команду со следующими параметрами:
    date 09111330
  2. Скопируйте системное время для настройки аппаратных часов с помощью команды:
    hwclock --systohc
  3. Проверьте, что системное и аппаратное время настроены корректно:
    hwclock ; date
  4. Время должно быть одинаковым, допустимы небольшие отклонения.

    Остановите службу ntpd chronyd:
    systemctl stop ntpdchronyd
  5. Определите сервер синхронизации времени. Вы можете использовать любую службу точного времени, работающую по протоколу ntp и доступную из вашей сети: как сетевое оборудование, так и контроллеры домена Windows (сервер Active Directory).
    Чтобы проверить, поддерживает ли сервер NTP, воспользуйтесь командой ntpdate chronyd -q 'server <IP> iburst', (где IP - адрес проверяемого сервера), например:

    root@atl-iw:~# ntpdate -q
    chronyd -q 'server 10.10.0.98

    server 10.10.0.98, stratum 3, offset 9.196765, delay 0.04437
    11 Sep 13:09:02 ntpdate[13819]: step time server 10.10.0.98 offset 9.196765 sec
    root@atl-iw:~#
     iburst'
    2024-09-11T10:30:17Z chronyd version 4.3 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +NTS +SECHASH +IPV6 -DEBUG)
    2024-09-11T10:30:17Z Initial frequency -19.107 ppm
    2024-09-11T10:30:22Z System clock wrong by 8551737.490761 seconds (step)
    2024-12-19T09:59:19Z chronyd exiting
  6. Настройте синхронизацию, указав сервер NTP-синхронизации в файле /etc/

    ntp

    chrony.conf. Для этого добавьте запись вида (укажите IP-адрес вашего NTP-сервера):
    server 10.10.0.98 iburst

    Запустите службу ntpd chronyd:
    systemctl start ntpdchronyd

     

  7. Проверьте текущее состояние службы ntpd chronyd с помощью команды:
    systemctl status ntpd chronyd

    Включите

  8. автоматическую Проверьте синхронизацию времени. Для этого выполните команду:
    chkconfig --level 345 ntpd on
    chronyc -N sources

Блок кода
MS Name/IP address         Stratum Poll Reach LastRx Last sample
======================================================
^* 10.10.0.98                    4   6    37    19    -14us[ -102us] +/-   39ms

Sv translation
languageen
  1. Set the system time using date command. For example, to set 12 August 2013 13:30 run the command with following parameters:
    date 12081330
  2. Copy the system time to configure hardware clock with the command:
    hwclock --systohc
  3. Check if the system and hardware clock are configured properly:
    hwclock ; date
  4. The time should be almost the same.
    Stop ntpd service chronyd service:
    systemctl stop ntpdchronyd
  5. Define the time synchronization server. You can use any exact time service which uses ntp protocol and is available from your network. It can be both network equipment and Windows domain controllers (Active Directory server). 
    To check if the server supports NTP, use ntpdate use chronyd -q 'server <IP> iburst' command (where IP is the address of server to be checked), for example:root@atl-iw:~# ntpdate -q

    chronyd -q 'server 10.10.0.98

    server 10.10.0.98, stratum 3, offset 9.196765, delay 0.04437

    11 Sep 13:09:02 ntpdate[13819]: step time server 10.10.0.98 offset 9.196765 sec

    root@atl-iw:~#
     iburst'
    2024-09-11T10:30:17Z chronyd version 4.3 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +NTS +SECHASH +IPV6 -DEBUG)
    2024-09-11T10:30:17Z Initial frequency -19.107 ppm
    2024-09-11T10:30:22Z System clock wrong by 8551737.490761 seconds (step)
    2024-12-19T09:59:19Z chronyd exiting
  6. Configure the synchronization specifying NTP synchronization server in in /etc/ntpchrony.conf conf file. Add  entry (specify IP address of your NTP server):
    server 10.10.0.98 iburst
  7. Run ntpd service chrony service:
    systemctl start ntpdchronyd
  8. Check the current state of ntpd chrony service with the command:
    systemctl status ntpdchronyd
  9. Enable automatic time synchronization:
    chkconfig --level 345 ntpd on

 

 

 

 

 
  1. chronyc -N sources


Блок кода
MS Name/IP address         Stratum Poll Reach LastRx Last sample
======================================================
^* 10.10.0.98                    4   6    37    19    -14us[ -102us] +/-   39ms