DEV Community

Rümeysa Öz for Açıklab

Posted on • Edited on

4

Oracle-Linux 8'de Chronyd ile NTP İstemcisi Yapılandırma

  • Chronyd Servisinin Yüklenmesi ve Etkinleştirilmesi:

Öncelikle, chronyd servisinin yüklü olup olmadığını kontrol edin. Eğer yüklü değilse, yükleyin:

sudo dnf install chrony
Enter fullscreen mode Exit fullscreen mode

Servisi etkinleştirin ve başlatın:

sudo systemctl enable --now chronyd
Enter fullscreen mode Exit fullscreen mode
  • Chrony Konfigürasyon Dosyasının Düzenlenmesi:

Özel bir NTP sunucusu kullanmak için, chrony konfigürasyon dosyasını düzenleyin:

sudo nano /etc/chrony.conf
Enter fullscreen mode Exit fullscreen mode

Dosyada, aşağıdaki gibi bir veya birden fazla server veya pool satırı ekleyin (örneğin "ntp.ulakbim.gov.tr"):

server ntp.ulakbim.gov.tr iburst
Enter fullscreen mode Exit fullscreen mode

İsterseniz IP adresi de kullanabilirsiniz. iburst opsiyonu, zaman senkronizasyonunu hızlandırmak için kullanılır.

  • Chronyd Servisini Yeniden Başlatma:

Konfigürasyon dosyasını düzenledikten sonra, servisi yeniden başlatın:

sudo systemctl restart chronyd
Enter fullscreen mode Exit fullscreen mode
  • Senkronizasyon Durumunu Kontrol Etme:

chronyc komutunu kullanarak senkronizasyon durumunu kontrol edebilirsiniz:

chronyc tracking
Enter fullscreen mode Exit fullscreen mode

Bu komut, senkronizasyon durumu hakkında detaylı bilgi verecektir.

  • Güvenlik Duvarı Ayarları:

Eğer güvenlik duvarı etkinse, NTP trafiğine izin vermeniz gerekebilir:

sudo firewall-cmd --add-service=ntp --permanent
sudo firewall-cmd --reload
Enter fullscreen mode Exit fullscreen mode
  • Senronizasyon Durumunu Doğrulama:

timedatctl komutunu kullanarak NTP servisinin aktif olup olmadığı kontrol edebilirsiniz:

timedatectl
Enter fullscreen mode Exit fullscreen mode

Image description

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay