1. 系统默认时区UTC
] date
Sun Aug 29 01:41:07 UTC 2021
2. 从其他的Linux复制Shanghai时区文件至共享卷
# scp /usr/share/zoneinfo/Asia/Shanghai root@172.15.7.203:/vmfs/volumes/59c5ca1f-8b71612e-2fb7-e41f13b5dc34
3. 修改配置文件 vi /etc/rc.local.d/local.sh
rm -f /etc/localtime && cp /vmfs/volumes/59c5ca1f-8b71612e-2fb7-e41f13b5dc34/Shanghai /etc/localtime
# 在此之前
exit 0
sed -i ‘/exit/i rm -f /etc/localtime && cp /vmfs/volumes/EMC-VNXE3200-LUN1/Shanghai /etc/localtime‘ /etc/rc.local.d/local.sh
4. 立即生效直接执行命令
rm -f /etc/localtime && cp /vmfs/volumes/59c5ca1f-8b71612e-2fb7-e41f13b5dc34/Shanghai /etc/localtime
END
[ESXi6.5]修改时区