linux和windows雙系統時間錯誤解決方案

來源:互聯網
上載者:User

標籤:current   ios   問題   更改   system   word   highlight   info   orm   

轉自http://www.2cto.com/os/201204/126212.html

windows時間會慢8小時,原因:

兩個概念:

UTC即Universal Time Coordinated,國際標準時間

GMT 即Greenwich Mean Time,格林尼治平時Windows 與 Mac/linux 預設看待系統硬體時間的方式是不一樣的:Windows把系統硬體時間當作本地時間(local time),即作業系統中顯示的時間跟BIOS中顯示的時間是一樣的。linux/Unix/Mac把硬體時間當作 UTC,作業系統中顯示的時間是硬體時間經過換算得來的,比如說北京時間是GMT+8,則系統中顯示時間是硬體時間+8。這樣,當PC中同時有多系統共存時,就出現了問題。 可以更改linux下/etc/default/rcS
sudo vim /etc/default/rCS#utc=yes
utc=no

把硬體時間作為localtime

或者更改windows登錄機碼

以管理員權限運行cmd

Reg add HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation /v RealTimeIsUniversal /t REG_DWORD /d 1

把硬體時間作為utc時間

 

  

linux和windows雙系統時間錯誤解決方案

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.