修改linux系统EDT时间为CST时间
刚开始系统时间为 EDT时间
EDT 是北美东部夏令时间,比UTC落后4个小时
CST 是美国中部标准时间(西六区,-6:00),中国东八区(+8:00)标准时间
[root@web-config-18-23 ~]# dateFri Apr 24 12:39:29 EDT 2020
将/etc/localtime修改,将默认输出UTC时间
[root@web-config-18-23 ~]# mv vps云服务器 /etc/localtime /etc/localtime.bak [root@web-config-18-23 ~]# dateFri Apr 24 16:43:38 UTC 2020
将/usr/share/zoneinfo/Asia/Shanghai建立软连接之后,将输出中国标准时间
[root@web-config-18-23 ~]# ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime[root@web-config-18-23 ~]# dateSat Apr 25 00:44:11 CST 2020 24401529