Get the App
SLTechnology News&Howtos  ›  Servers  › 

How RedHat 7 modifies the time zone of Linux

Shulou Source: shulou.com Published: 2022-06-01 03:11:04 11月15日 Update

RedHat 7 how to modify the time zone of Linux, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

The operating system is:

Red Hat Enterprise Linux Server release 7.4 (Maipo)

View the current time zone:

[root@ip-172-31-29-22 sysconfig] # timedatectl

Local time: Tue 2018-01-09 08:01:21 UTC

Universal time: Tue 2018-01-09 08:01:21 UTC

RTC time: Tue 2018-01-09 08:01:20

Time zone: UTC (UTC, + 0000)

NTP enabled: yes

NTP synchronized: yes

RTC in local TZ: no

DST active: n/a

Modify the time zone:

[root@ip-172-31-29-22 sysconfig] # timedatectl set-timezone Asia/Shanghai

View the modified time zone:

[root@ip-172-31-29-22] # timedatectl

Local time: Tue 2018-01-09 16:04:55 CST

Universal time: Tue 2018-01-09 08:04:55 UTC

RTC time: Tue 2018-01-09 08:04:54

Time zone: Asia/Shanghai (CST, + 0800)

NTP enabled: yes

NTP synchronized: yes

RTC in local TZ: no

DST active: n/a

After reading the above, have you mastered how RedHat 7 changes the time zone of Linux? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Tags: Time zone content method more problem helpless to this end operating system reason this skills articles systems experience industry information information channels channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Linux macOS Docker MariaDB