Ubuntu 修改时区

  1. 命令如下:
timedatectl set-timezone Asia/Shanghai
  1. 然后输入 date 验证
root@xxx:~# timedatectl set-timezone Asia/Shanghai
root@xxx:~# date
Thu Nov 27 04:16:37 PM CST 2025
root@xxx:~#
On this page
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9