DEV Community

Rümeysa Öz for Açıklab

Posted on • Edited on

3

Ubuntu 22.04'te systemd-timesyncd ile NTP İstemcisi Yapılandırma

Birçok modern Linux dağıtımı, ağ zaman senkronizasyonunu yönetmek için systemd-timesyncd servisini kullanır.

1. systemd-timesyncd Servis Durumunu Kontrol Etme:

Öncelikle, servisin çalışıp çalışmadığını kontrol edin:

sudo systemctl status systemd-timesyncd 
Enter fullscreen mode Exit fullscreen mode

2. NTP Sunucusunun Ayarlanması:

Varsayılan olarak, systemd-timesyncd Ubuntu'nun NTP sunucularını kullanacaktır. Ancak özel bir NTP sunucusu kullanmak istiyorsanız:

Yapılandırma dosyasını açın:

sudo nano /etc/systemd/timesyncd.conf
Enter fullscreen mode Exit fullscreen mode

Dosyanın sonuna aşağıdaki satırı ekleyin. Bu örnekte "ntp.ulakbim.gov.tr" adlı NTP sunucusunu kullanıyoruz (NTP Server IP'si de girilebilir.):

NTP=ntp.ulakbim.gov.tr
Enter fullscreen mode Exit fullscreen mode

3. Servisi Yeniden Başlatma:

Yapılandırmayı tamamladıktan sonra, değişikliklerin etkili olması için systemd-timesyncd servisini yeniden başlatın:

sudo systemctl restart systemd-timesyncd 
Enter fullscreen mode Exit fullscreen mode

4. Senkronizasyon Durumunu Kontrol Etme:

timedatectl komutu ile NTP senkronizasyonunun durumunu kontrol edebilirsiniz:

timedatectl timesync-status
Enter fullscreen mode Exit fullscreen mode

Bu komut, istemcinin NTP sunucusuyla olan senkronizasyon durumu hakkında ayrıntılı bilgi verecektir.

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

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