1、从其他一台Linux主机拷贝一稍僚敉视个/usr/share/zoneinfo/Asia/Shanghai 文件到ESXI主机的数据卷目录(即存储虚拟机文件的那个目录,其他目录重启ESXI会区仁苣逢被还原掉)。[root@localhost ~]# cd /usr/share/zoneinfo/Asia[root@localhost Asia]# scp Shanghai [email protected]:/etc/
2、已经拷鹂掳粼疤贝到esxi主机上了,回到esxi主机端操作,先备份好之前的localtime,文件,在替换刚刚拷贝过来的时间文件。立即生效,执行以下命令:mv /etc/localtime /etc/localtime.bak && cp /etc/Shanghai /etc/localtime
3、如果时区是对了的,只是时间不对,设置一下时间就行了esxcli system time set -H 15 -m 30 -s 30