Комментарий:
Published by Scroll Versions from space TMAG and version 7.12
Sv translation
language
ru
Установите системное время с помощью команды date. Например, для установки 11 сентября 2013 13:30 запустите команду со следующими параметрами: date 09111330
Скопируйте системное время для настройки аппаратных часов с помощью команды: hwclock --systohc
Проверьте, что системное и аппаратное время настроены корректно: hwclock ; date
Время должно быть одинаковым, допустимы небольшие отклонения.
Остановите службу ntpdchronyd: systemctl stop ntpdchronyd
Определите сервер синхронизации времени. Вы можете использовать любую службу точного времени, работающую по протоколу 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
Настройте синхронизацию, указав сервер NTP-синхронизации в файле /etc/
ntp
chrony.conf. Для этого добавьте запись вида (укажите IP-адрес вашего NTP-сервера): server 10.10.0.98 iburst
Запустите службу ntpdchronyd: systemctl start ntpdchronyd
Проверьте текущее состояние службы ntpd chronydс помощью команды: systemctl status ntpdchronyd
Включите
автоматическую Проверьте синхронизацию времени. Для этого выполните команду: 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
language
en
Set the system time using date command. For example, to set 12 August 2013 13:30 run the command with following parameters: date 12081330
Copy the system time to configure hardware clock with the command: hwclock --systohc
Check if the system and hardware clock are configured properly: hwclock ; date
The time should be almost the same. Stop ntpd servicechronyd service: systemctl stop ntpdchronyd
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
Configure the synchronization specifying NTP synchronization server in in /etc/ntpchrony.conf conffile. Add entry (specify IP address of your NTP server): server 10.10.0.98 iburst
Run ntpd servicechrony service: systemctl start ntpdchronyd
Check the current state of ntpd chronyservice with the command: systemctl status ntpdchronyd
Enable automatic time synchronization: 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