ESXI6.0 时间显示不正确

ESXI主机打开SSH登陆到命令行下查看当前时间,时间为UTC

[root@ESXI043:~] date
Mon Jul  8 09:22:17 UTC 2019
[root@ESXI043:~]

时间为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:~]

查看时间已经变更,重启将失效 下面把该操作加入开机启动脚本中

[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 /vmfs/volumes/DATA043/localtime /etc/localtime


exit 0

图片.png

附件 localtime.zip





未经允许不得转载:ESXI6.0 时间显示不正确

发表评论

路人甲
看不清楚?点图切换 Ctrl+Enter快速提交

网友评论(0)



枫叶落 -技术学习交流--用心学习--用心记录!

联系我