CentOS 系统时区设置

查看系统当前时区 timedatectl

Local time: Wed 2019-12-25 09:28:36 UTC
Universal time: Wed 2019-12-25 09:28:36 UTC
RTC time: Wed 2019-12-25 09:28:36
Time zone: UTC (UTC, +0000)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a

ll /etc/localtime

lrwxrwxrwx. 1 root root 25 May 16 2019 /etc/localtime -> ../usr/share/zoneinfo/UTC

查看时区列表 timedatectl list-timezones

设置系统时区 sudo timedatectl set-timezone Asia/Shanghai

参考文章:https://linuxize.com/post/how-to-set-or-change-timezone-on-centos-7/

你可能感兴趣的:(CentOS 系统时区设置)