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