怎么在ubuntu系統(tǒng)中修改時區(qū)和時間-創(chuàng)新互聯(lián)

怎么在ubuntu系統(tǒng)中修改時區(qū)和時間?很多新手對此不是很清楚,為了幫助大家解決這個難題,下面小編將為大家詳細講解,有這方面需求的人可以來學習下,希望你能有所收獲。

成都創(chuàng)新互聯(lián)公司于2013年創(chuàng)立,是專業(yè)互聯(lián)網(wǎng)技術服務公司,擁有項目成都網(wǎng)站設計、網(wǎng)站建設網(wǎng)站策劃,項目實施與項目整合能力。我們以讓每一個夢想脫穎而出為使命,1280元墊江做網(wǎng)站,已為上家服務,為墊江各地企業(yè)和個人服務,聯(lián)系電話:18980820575

ubuntu修改時區(qū)和時間的方法

1.首先查看時區(qū):

codetc@webubuntu:~$ date -R
Tue, 17 Dec 2013 18:23:01 +0800

如果要修改時區(qū),執(zhí)行sudo tzselect

2.選擇區(qū)域:亞洲

怎么在ubuntu系統(tǒng)中修改時區(qū)和時間

codetc@webubuntu:~$ sudo tzselect
[sudo] password for codetc: 
Please identify a location so that time zone rules can be set correctly.
Please select a continent or ocean.
 1) Africa
 2) Americas
 3) Antarctica
 4) Arctic Ocean
 5) Asia
 6) Atlantic Ocean
 7) Australia
 8) Europe
 9) Indian Ocean
10) Pacific Ocean
11) none - I want to specify the time zone using the Posix TZ format.
#? 5

3.選擇國家:中國

怎么在ubuntu系統(tǒng)中修改時區(qū)和時間

Please select a country.
 1) Afghanistan      18) Israel        35) Palestine
 2) Armenia        19) Japan         36) Philippines
 3) Azerbaijan      20) Jordan        37) Qatar
 4) Bahrain        21) Kazakhstan      38) Russia
 5) Bangladesh      22) Korea (North)     39) Saudi Arabia
 6) Bhutan        23) Korea (South)     40) Singapore
 7) Brunei        24) Kuwait        41) Sri Lanka
 8) Cambodia       25) Kyrgyzstan      42) Syria
 9) China         26) Laos         43) Taiwan
10) Cyprus        27) Lebanon        44) Tajikistan
11) East Timor      28) Macau         45) Thailand
12) Georgia        29) Malaysia       46) Turkmenistan
13) Hong Kong       30) Mongolia       47) United Arab Emirates
14) India         31) Myanmar (Burma)    48) Uzbekistan
15) Indonesia       32) Nepal         49) Vietnam
16) Iran         33) Oman         50) Yemen
17) Iraq         34) Pakistan
#? 9

4.選擇時區(qū):北京時間

怎么在ubuntu系統(tǒng)中修改時區(qū)和時間

Please select one of the following time zone regions.
1) east China - Beijing, Guangdong, Shanghai, etc.
2) Heilongjiang (except Mohe), Jilin
3) central China - Sichuan, Yunnan, Guangxi, Shaanxi, Guizhou, etc.
4) most of Tibet & Xinjiang
5) west Tibet & Xinjiang
#? 1

5.確認驗證:

怎么在ubuntu系統(tǒng)中修改時區(qū)和時間

The following information has been given:
    China
    east China - Beijing, Guangdong, Shanghai, etc.
Therefore TZ='Asia/Shanghai' will be used.
Local time is now:   Tue Dec 17 18:22:10 CST 2013.
Universal Time is now: Tue Dec 17 10:22:10 UTC 2013.
Is the above information OK?
1) Yes
2) No
#? 1
You can make this change permanent for yourself by appending the line
    TZ='Asia/Shanghai'; export TZ
to the file '.profile' in your home directory; then log out and log in again.
Here is that TZ value again, this time on standard output so that you
can use the /usr/bin/tzselect command in shell scripts:
Asia/Shanghai

6.復制文件到/etc目錄下

sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

7.更新時間

sudo ntpdate time.windows.com

8.修改時間以后,修改硬件CMOS的時間

sudo hwclock --systohc

看完上述內容是否對您有幫助呢?如果還想對相關知識有進一步的了解或閱讀更多相關文章,請關注創(chuàng)新互聯(lián)成都網(wǎng)站設計公司行業(yè)資訊頻道,感謝您對創(chuàng)新互聯(lián)成都網(wǎng)站設計公司的支持。

另外有需要云服務器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、網(wǎng)站設計器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。

當前名稱:怎么在ubuntu系統(tǒng)中修改時區(qū)和時間-創(chuàng)新互聯(lián)
分享鏈接:http://muchs.cn/article22/heejc.html

成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供App設計、靜態(tài)網(wǎng)站品牌網(wǎng)站建設、用戶體驗、虛擬主機ChatGPT

廣告

聲明:本網(wǎng)站發(fā)布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經(jīng)允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯(lián)

成都app開發(fā)公司