centos7修改时区EDT------CST

root@localhost ~]# date
Wed Oct 16 01:34:16 EDT 2019
[root@localhost ~]# cd /etc/
[root@localhost etc]# ls local
locale.conf  localtime    
[root@localhost etc]# ls localtime 
localtime
[root@localhost etc]# ls -l localtime 
lrwxrwxrwx. 1 root root 38 Oct 27  2018 localtime -> ../usr/share/zoneinfo/America/New_York
[root@localhost etc]# vim localtime 
[root@localhost etc]# mv localtime localtime.bak
[root@localhost etc]# ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
[root@localhost etc]# date
Wed Oct 16 13:36:54 CST 2019
EDT时区改为CST时区

posted on 2019-10-16 13:40  zhangmingda  阅读(1329)  评论(0编辑  收藏  举报

导航