| NTPのコマンド | 概要 | Chronyでの置き換え |
|---|---|---|
yum install ntp |
NTPパッケージのインストール | dnf install chrony |
service ntpd start |
サービスの起動 | systemctl start chronyd |
chkconfig ntpd on |
自動起動の有効化 | systemctl enable chronyd |
chkconfig --list ntpd |
自動起動の確認 | systemctl is-enabled chronyd |
/etc/ntp.conf |
設定ファイル | /etc/chrony.conf |
ntpq -p |
同期状態の確認 | chronyc sources または chronyc tracking |
service ntpd restart |
再起動 | systemctl restart chronyd |
restrict 192.168.0.0 mask 255.255.255.0 nomodify notrap |
NTPクライアントの許可 | allow 192.168.0.0/24(/etc/chrony.conf) |
service iptables reload |
iptables再読み込み | systemctl restart iptables |
iptables -L |
現在のiptablesルール確認 | iptables -L(共通) |
※ Chronyでの確認用補足コマンド:
chronyc sources: 同期中のサーバ一覧chronyc tracking: 時刻差や精度の詳細chronyc sourcestats: 各NTPソースの遅延/ジッターtimedatectl: 全体の時刻同期状況の確認
Visited 99 times, 1 visit(s) today