# Ubuntu 修改时区 1. 命令如下: ```bash timedatectl set-timezone Asia/Shanghai ``` 2. 然后输入 date 验证 ```bash root@xxx:~# timedatectl set-timezone Asia/Shanghai root@xxx:~# date Thu Nov 27 04:16:37 PM CST 2025 root@xxx:~# ```
# Ubuntu 修改时区 1. 命令如下: ```bash timedatectl set-timezone Asia/Shanghai ``` 2. 然后输入 date 验证 ```bash root@xxx:~# timedatectl set-timezone Asia/Shanghai root@xxx:~# date Thu Nov 27 04:16:37 PM CST 2025 root@xxx:~# ```