查看当前所在时区:
1 |
[root@monitor ~]# ll /etc/localtime <br /> lrwxrwxrwx 1 root root 35 1月 2 10:35 /etc/localtime -> ../usr/share/zoneinfo/Europe/London<br /> [root@monitor ~]# |
查看时区列表:
1 |
[root@monitor ~]# timedatectl list-timezones | grep Shanghai<br /> Asia/Shanghai |
更改当前时区:
1 |
[root@monitor ~]# timedatectl set-timezone Asia/Shanghai<br /> |
2019年1月2日10:40:53