Loading

ubuntu20.04 Linux 修改系统时区

同步网络时间

1. 检查当前系统时区

timedatectl

2. 查看时区列表

timedatectl list-timezones

3. 修改服务器时区

timedatectl set-timezone Asia/Shanghai

4. 再次检查当前系统时区

timedatectl

其他

# 设置时间
date -s “20240124 12:13:14”
date -s “12:13:14”
posted @ 2022-08-09 14:55  老卫同学  阅读(314)  评论(0)    收藏  举报