LoginSignup
0
0

More than 5 years have passed since last update.

ec2でサーバーの時間がずれた時の対応

Last updated at Posted at 2016-09-10
[root@ip- ntp]# date
2014年 10月  7日 火曜日 01:00:31 UTC

時間がUTCになっている。yum updateでglibcが更新されるとUTCに戻る。
localetimeを直す

[root@ip- zoneinfo]# sudo cp /usr/share/zoneinfo/Japan /etc/localtime

ローカルタイムを日本にする。

[root@ip- zoneinfo]# date
2014年 10月  7日 火曜日 10:02:28 JST

日本時間に戻る。

参考:http://hack.aipo.com/archives/1967/

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