0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[Linux] クロック設定_NTP, chronyc, /etc/chrony.conf

Last updated at Posted at 2025-06-21

chronyc コマンド

$ chronyc [サブコマンド]
サブコマンド 由来 説明
default chrony client chrony デーモンと通信して、現在の時刻同期状態などを確認・制御するクライアントコマンド
activity source activity オンライン/オフラインのNTPサーバの数を表示
sources time sources 現在参照している NTP サーバの一覧と状態を表示
sourcestats source statistics 現在参照している NTP サーバの統計情報を表示
tracking clock tracking 現在参照している NTP サーバの時刻同期の情報表示

/etc/chrony.conf

解説

/etc/chrony.confの主な設定項目

設定項目 説明
server 時刻同期を行うNTPサーバを指定
例:server ntp.nict.jp iburst
一方向の同期関係
peer 時刻同期を行うNTPサーバを指定
例:peer 192.168.0.10 iburst
双方向の同期関係
pool 時刻同期を行うNTPサーバのプール(集合)を指定
例:pool ntp.nict.jp iburst
driftfile システムクロックのドリフト(ズレ)を保存するファイルのパス指定
例:driftfile /var/lib/chrony/drift
rtcsync システムクロックの時刻を、定期的にハードウェアクロックに反映(hwclock --systohc 相当)

参考リンク

Ping-t

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?