centos8时区设置

1.查看linux字符集

[root@www ~]# localectl
   System Locale: LANG=zh_CN.UTF-8
       VC Keymap: cn
      X11 Layout: cn
# linux字符集配置文件
[root@www ~]# cat /etc/locale.conf 
LANG="zh_CN.UTF-8"

# 配置linux字符集
vim /etc/profile
export LANG="zh_CN.UTF-8"

2.查看与修改时区

[root@www ~]# timedatectl
      Local time: Sat 2030-06-22 07:02:58 CST
  Universal time: Fri 2030-06-21 23:02:58 UTC
        RTC time: Fri 2030-06-21 23:02:58
       Time zone: Asia/Shanghai (CST, +0800)
     NTP enabled: n/a
NTP synchronized: no
 RTC in local TZ: no
      DST active: n/a
[root@www ~]# timedatectl 
list-timezones  set-local-rtc   set-ntp         set-time        set-timezone    status          
[root@www ~]# timedatectl set-timezone Asia/Chongqing

# 正常时区设置上海/北京
timedatectl set-timezone Asia/Shanghai