Debian 12 Chronyをインストールする方法

環境
Debian 12

操作方法
1.Chrony をインストールする

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# apt -y install chrony
# apt -y install chrony
# apt -y install chrony

2.Chrony の設定ファイルを行います
# vi /etc/chrony/chrony.conf

8行目 : デフォルト設定はコメントにして自身のタイムゾーンの NTP サーバーを追記

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
#pool 2.debian.pool.ntp.org iburst
pool ntp.nict.jp iburst
#pool 2.debian.pool.ntp.org iburst pool ntp.nict.jp iburst
#pool 2.debian.pool.ntp.org iburst
pool ntp.nict.jp iburst

最終行に追記
allow 10.0.0.0/24

3.chronyを再起動します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# systemctl restart chrony
# systemctl restart chrony
# systemctl restart chrony

4.動作確認
# chronyc sources

Debian 12

Posted by arkgame