CentOS 7 Failed to set ntp: NTP not supported Hatası ve Çözümü
Nov 23, 2020
Centos 7 zamanı systemd aracılığıyla senkronize etmek için (güvenli) bir NTP istemcisine ihtiyaç duyar.
Alınan hatanın sebebi NTP servisi CentOS 7'deki systemd’nin son sürümünde, devre dışı bırakılmasıdır. 7.7.1908'de ve sonrası sürümlerde systemd-timesyncd mevcut değil.
Bu iki anlama gelir:
- Dağıtımınız systemd-timesyncd’yi destekliyorsa, chrony’yi devre dışı bırakabilir ve systemd-timesyncd’yi etkinleştirebilirsiniz.
- Aksi takdirde, bir (güvenli) NTP istemcisi kurmak gerekir.
[root@syslog1 ~]# timedatectl set-ntp true
Failed to set ntp: NTP not supported.
[root@syslog1 ~]# sudo yum install chrony
[root@syslog1 ~]# timedatectl set-ntp true
Servisi başlatmak için:
[root@syslog1 ~]# systemctl start chronyd
Servisi aktif etmek için:
[root@syslog1 ~]# systemctl enable chronyd
Servisin durumunu kontrol etmek içinde:
[root@syslog1 ~]# systemctl status chronyd