Chronyのインストール
dnfを使ってChronyをインストールします。
dnf -y install chrony
設定ファイルを編集します。
vi /etc/chrony.conf
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
# 日本標準時を提供しているNTPサーバー(stratum 1)
#pool 2.almalinux.pool.ntp.org iburst
server ntp.nict.jp iburst
server ntp.jst.mfeed.ad.jp iburst
# Allow NTP client access from local network.
#allow 192.168.0.0/16
#内部(例:192.168.0.0/24)からの時刻同期を許可
allow 192.168.0.0/24
再起動します。
systemctl start chronyd
systemctl enable chronyd
chronyc sources