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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM