会飞的鱼

2019
技术学习交流--用心学习--用心记录!
首页 » ▇ ESXI » ESXI6.0 时间显示不正确

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





文章如无特别注明均为原创! 作者: Eagle, 转载或复制请以 超链接形式 并注明出处 枫叶落
原文地址《 ESXI6.0 时间显示不正确》发布于2019-7-8

分享到:
打赏

评论

切换注册

登录

您也可以使用第三方帐号快捷登录

切换登录

注册