debian系统时区快速修改方法

作者:欧阳 发布时间:2022年12月18日 阅读: 1,945 分类:Linux摘要

查看当前时区方法:

root@localhost:~# timedatectl
               Local time: Sun 2022-12-18 16:26:09 CST
           Universal time: Sun 2022-12-18 08:26:09 UTC
                 RTC time: Sun 2022-12-18 08:26:10
                Time zone: Asia/Shanghai (CST, +0800)
System clock synchronized: no
              NTP service: n/a
          RTC in local TZ: no

查看正确的时区

root@localhost:~# timedatectl list-timezones |grep Shanghai    #查找中国时区的完整名称
Asia/Shanghai

阅读剩余部分...