CentOS 7 时区设置 # timedatectl status Local time: Sat 2019-11-09 22:23:58 EST Universal time: Sun 2019-11-10 03:23:58 UTC RTC time: Sun 2019-11-10 03:23:53 Time zone: America/New_York (EST, -0500) NTP enabled: yes NTP synchronized: yes RTC in local TZ: no DST active: no Last DST change: DST ended at Sun 2019-11-03 01:59:59 EDT Sun 2019-11-03 01:00:00 EST Next DST change: DST begins (the clock jumps one hour forward) at Sun 2020-03-08 01:59:59 EST Sun 2020-03-08 03:00:00 EDT 设置CST # timedatectl set-timezone Asia/Shanghai 或者: # cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime # timedatectl status Local time: Sun 2019-11-10 11:28:26 CST Universal time: Sun 2019-11-10 03:28:26 UTC RTC time: Sun 2019-11-10 03:28:20 Time zone: Asia/Shanghai (CST, +0800) NTP enabled: yes NTP synchronized: yes RTC in local TZ: no DST active: n/a (责任编辑:IT) |