【Linux】CentOS 7.5 修改时区

1⃣️查看当前CentOS系统版本:###

[parallels@k8s-node2 ~]$ cat /etc/redhat-release 
CentOS Linux release 7.5.1804 (Core) 

2⃣️查看时区:###

[root@k8s-node3 parallels]# ll /etc/localtime 
lrwxrwxrwx. 1 root root 41 Aug 10  2017 /etc/localtime -> ../usr/share/zoneinfo/America/Los_Angeles

3⃣️修改时区:###

[root@k8s-node3 parallels]# ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 
[root@k8s-node3 parallels]# ll /etc/localtime 
lrwxrwxrwx 1 root root 33 Dec 12 22:00 /etc/localtime -> /usr/share/zoneinfo/Asia/Shanghai
[root@k8s-node3 parallels]# date
Thu Dec 12 22:00:24 CST 2019
#查看时间还是不正确,重启
[root@k8s-node3 parallels]# reboot

4⃣️查看当前时间:###

[parallels@k8s-node3 ~]$ date
Fri Dec 13 11:35:36 CST 2019
posted @ 2019-12-13 11:39  爱啦啦  阅读(7730)  评论(0编辑  收藏  举报