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

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

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMAG and version 7.0
Sv translation
languageru
  1. Установите системное время с помощью команды date. Например, для установки 11 сентября 2013 13:30 запустите команду со следующими параметрами:
    date 09111330
  2. Скопируйте системное время для настройки аппаратных часов с помощью команды:
    hwclock --systohc
  3. Проверьте, что системное и аппаратное время настроены корректно:
    hwclock ; date
  4. Время должно быть одинаковым, допустимы небольшие отклонения.


    Остановите службу

    ntp

    ntpd:
    systemctl stop

    ntp

    ntpd

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

    root@atl-iw:~# ntpdate -q 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:~#
  6. Настройте синхронизацию, указав сервер NTP-синхронизации в файле /etc/ntp.conf. Для этого добавьте запись вида (укажите IP-адрес вашего NTP-сервера):
    server 10.10.0.98
  7. Запустите службу

    ntp

    ntpd:
    systemctl start

    ntp

    ntpd 

  8. Проверьте текущее состояние службы

    ntp

    ntpd с помощью команды:
    systemctl status

    ntp

    ntpd 

  9. Включите автоматическую синхронизацию времени:
    chkconfig --level 345 ntpd on


 
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 ntp service ntpd service:
    systemctl stop ntpntpd
  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 NPTNTP, use ntpdate -q <IP> command (where IP is the address of server to be checked), for example:
    root@atl-iw:~# ntpdate -q 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:~#

  6. Configure the synchronization specifying NTP synchronization server in /etc/ntp.conf file. Add  entry (specify IP address of your NTP server):
    server 10.10.0.98
  7. Run ntp service ntpd service:
    systemctl start ntpntpd
  8. Check the current state of ntp service ntpd service with the command:
    systemctl status ntpntpd
  9. Enable automatic time synchronization:
    chkconfig --level 345 ntpd on