s50
NTP server settings (Chrony)
Install Chrony and synchronize time.
[root@www ~]# 50_1dnf -y install chrony
s51Configure Chrony.
[root@www ~]# 51_1vi /etc/chrony.conf
s52Line 3: Add “#” at the beginning of the line to uncomment it, and add the NTP server for time synchronization.
52_1#pool 2.centos.pool.ntp.org iburst 52_2pool ntp.nict.jp iburst
s53Line 24: Add network.
53_1allow 192.168.1.1/24
s54Set autostart.
[root@www ~]# 54_1systemctl enable --now chronyd
s55Check operation.
[root@www ~]# 55_1chronyc 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
コメント