ESXI6.0 时间并且重启不失效
ESXI6.0 时间显示不正确,重新失效的解决方法
ESXI主机打开SSH登陆到命令行下查看当前时间,时间为UTC
[root@ESXI043:~] date Mon Jul 8 09:22:17 UTC 2019
时间为UTC,上传时区为上海的localtime文件到ESXI数据存储区,可下载本站提供附件进行上传,拷贝覆盖/etc/localtime
[root@ESXI043:~] cp /vmfs/volumes/DATA043/localtime /etc/localtime
[root@ESXI043:~] date Mon Jul 8 17:22:59 CST 2019
查看时间已经变更,重启将失效 下面把该操作加入开机启动脚本中
[root@ESXI043:~] cat /etc/rc.local.d/local.sh
#!/bin/sh # local configuration options
# Note: modify at your own risk! If you do/use anything in this
# script that is not part of a stable API (relying on files to be in
# specific places, specific tools, specific output, etc) there is a
# possibility you will end up with a broken system after patching or
# upgrading. Changes are not supported unless under direction of
# VMware support.
cp -f /vmfs/volumes/DATA043/localtime /etc/localtime
exit 0
------道不行,乘桴浮于海!------
------欲讷于言,而敏于行!-------