0
0

AWS上のUbuntu 22.04でchronyの設定をする

Last updated at Posted at 2024-02-26

注意

小規模・個人利用のシステムにおける設定を記載しています。
中大規模システムの設定を予定している場合は別サイトも参考にしてください。

設定

systemctl status chrony
# -> chronyがインストールされていること、activeであることを確認
systemctl is-enabled chrony
# -> enabledであることを確認

vi /etc/chrony/chrony.conf
# pool ~~の行をコメントアウトする
# コメントアウトしたpoolの下に「server 169.254.169.123 iburst minpoll 4 maxpoll 4」

systemctl restart chrony
systemctl status chrony
# -> activeであることを確認

chronyc sources | fgrep '^*'
# -> 169.254.169.123が表示されることを確認

chronyc tracking
#Reference ID    : 169.254.169.123 (169.254.169.123)
#            Stratum         : 4
#            Ref time (UTC)  : Wed Nov 29 07:41:57 2017
#            System time     : 0.000000011 seconds slow of NTP time
#            Last offset     : +0.000041659 seconds
#            RMS offset      : 0.000041659 seconds
#            Frequency       : 10.141 ppm slow
#            Residual freq   : +7.557 ppm
#            Skew            : 2.329 ppm
#            Root delay      : 0.000544 seconds
#            Root dispersion : 0.000631 seconds
#            Update interval : 2.0 seconds
#            Leap status     : Normal

🔎chrony 読み方

「クローニー」 と読むらしい

参考

「Linux インスタンスの時刻の設定」
https://docs.aws.amazon.com/ja_jp/AWSEC2/latest/UserGuide/set-time.html

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