redhat时区配置
查看时区:
[root@localhost ~]# timedatectl Local time: 一 2020-05-11 18:45:36 PDT Universal time: 二 2020-05-12 01:45:36 UTC RTC time: 二 2020-05-12 01:45:36 Time zone: America/Los_Angeles (PDT, -0700) NTP enabled: yes NTP synchronized: yes RTC in local TZ: no DST active: yes Last DST change: DST began at 日 2020-03-08 01:59:59 PST 日 2020-03-08 03:00:00 PDT Next DST change: DST ends (the clock jumps one hour backwards) at 日 2020-11-01 01:59:59 PDT 日 2020-11-01 01:00:00 PST [root@localhost ~]#
修改时区为北京时间:
[root@localhost ~]$ timedatectl list-timezones |grep 'Asia/Shai*'
Asia/Shanghai
[root@localhost ~]$ timedatectl set-timezone 'Asia/Shanghai'
PS:研究时区配置的时候把root用户图形环境整挂了,其他用户正常,包括重装各种方法都试过,还未解决>.<

浙公网安备 33010602011771号