- 执行 tzselect 命令
根据引导得到TZ值 - 更改用户时区
export TZ='Europe/Amsterdam'
source ~/.bashrc
- 更新系统时区
sudo rm -f /etc/localtime
sudo ln -s /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime
- 测试
timedatectl
export TZ='Europe/Amsterdam'
source ~/.bashrc
sudo rm -f /etc/localtime
sudo ln -s /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime
timedatectl