Fedora36: NTP server settings (Chrony)

NTP server settings (Chrony)

Install Chrony and synchronize time.

[root@www ~]# dnf -y install chrony

Configure Chrony.

[root@www ~]# vi /etc/chrony.conf

Line 3: Add “#” at the beginning of the line to uncomment it, and add the NTP server for time synchronization.

#pool 2.centos.pool.ntp.org iburst
pool ntp.nict.jp iburst

Line 24: Add network.

allow 192.168.1.1/24

Set autostart.

[root@www ~]# systemctl enable --now chronyd

Check operation.

[root@www ~]# chronyc sources
210 Number of sources = 4
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^- ec2-13-230-38-136.ap-nor> 2 10 377 299 +3241us[+3241us] +/- 38ms
^* ntp-a2.nict.go.jp 1 10 377 478 +371us[ +563us] +/- 11ms
^- ntp-5.jonlight.com 2 10 377 236 +460us[ +460us] +/- 40ms
^- 122x215x240x51.ap122.ftt> 2 10 377 298 -957us[ -957us] +/- 40ms

コメント

タイトルとURLをコピーしました