Blame
| 9211de | Terry | 2025-11-27 08:18:18 | 1 | # Ubuntu 修改时区 |
| 2 | ||||
| 3 | 1. 命令如下: |
|||
| 4 | ||||
| 5 | ```bash |
|||
| 6 | timedatectl set-timezone Asia/Shanghai |
|||
| 7 | ||||
| 8 | ``` |
|||
| 9 | ||||
| 10 | 2. 然后输入 date 验证 |
|||
| 11 | ||||
| 12 | ```bash |
|||
| 13 | root@xxx:~# timedatectl set-timezone Asia/Shanghai |
|||
| 14 | root@xxx:~# date |
|||
| 15 | Thu Nov 27 04:16:37 PM CST 2025 |
|||
| 16 | root@xxx:~# |
|||
| 17 | ``` |