0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

AWS AmazonLinux 時刻同期設定

Posted at

背景

  • 2022/08/04時点の情報
  • AWSの時刻同期についてのまとめ

目次

  1. タイムゾーンの設定
  2. 時刻同期設定

環境

# uname -a
Linux CMS_ALLIN_01 5.10.130-118.517.amzn2.x86_64 #1 SMP Wed Jul 13 16:51:52 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

# cat /proc/version
Linux version 5.10.130-118.517.amzn2.x86_64 (mockbuild@ip-10-0-43-203) (gcc10-gcc (GCC) 10.3.1 20210422 (Red Hat 10.3.1-1), GNU ld version 2.35-21.amzn2.0.1) #1 SMP Wed Jul 13 16:51:52 UTC 2022

# cat /etc/system-release
Amazon Linux release 2 (Karoo)

タイムゾーンの設定

  • タイムゾーンの確認
timedatectl status
▼以下の結果であればOK
-----------------------------------------------
      Local time: Thu 2022-08-04 12:48:37 JST
  Universal time: Thu 2022-08-04 03:48:37 UTC
        RTC time: Thu 2022-08-04 03:48:38
       Time zone: Asia/Tokyo (JST, +0900)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
-----------------------------------------------
  • 日本への変更方法
timedatectl set-timezone Asia/Tokyo

AWSでの時刻同期

chronyについて

# systemctl status chronyd
  • 設定ファイル
# cat /etc/chrony.conf
  • 接続先確認
chronyc sources -v
0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?