欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

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

本文小編為大家詳細(xì)介紹“ubuntu系統(tǒng)怎么修改時(shí)區(qū)和時(shí)間”,內(nèi)容詳細(xì),步驟清晰,細(xì)節(jié)處理妥當(dāng),希望這篇“ubuntu系統(tǒng)怎么修改時(shí)區(qū)和時(shí)間”文章能幫助大家解決疑惑,下面跟著小編的思路慢慢深入,一起來(lái)學(xué)習(xí)新知識(shí)吧。

網(wǎng)站建設(shè)公司,為您提供網(wǎng)站建設(shè),網(wǎng)站制作,網(wǎng)頁(yè)設(shè)計(jì)及定制網(wǎng)站建設(shè)服務(wù),專注于成都企業(yè)網(wǎng)站定制,高端網(wǎng)頁(yè)制作,對(duì)崗?fù)?/a>等多個(gè)行業(yè)擁有豐富的網(wǎng)站建設(shè)經(jīng)驗(yàn)的網(wǎng)站建設(shè)公司。專業(yè)網(wǎng)站設(shè)計(jì),網(wǎng)站優(yōu)化推廣哪家好,專業(yè)網(wǎng)站推廣優(yōu)化,H5建站,響應(yīng)式網(wǎng)站。

在linux計(jì)算機(jī)上,有兩個(gè)時(shí)間,一個(gè)是硬件時(shí)間(bios中記錄的時(shí)間,稱為hwclock),另一個(gè)是操作系統(tǒng)時(shí)間(osclock)。硬件時(shí)鐘由bios電池供電,

當(dāng)計(jì)算機(jī)關(guān)機(jī)后,會(huì)繼續(xù)運(yùn)行,bios電池一般可使用幾年,如果沒電了,那bios中的數(shù)據(jù)會(huì)恢復(fù)出廠設(shè)置。

硬件時(shí)間與操作系統(tǒng)時(shí)間的交互流程

1、開機(jī)時(shí),操作系統(tǒng)從bios中讀取硬件時(shí)間+時(shí)區(qū),然后根據(jù)osclock的時(shí)區(qū),轉(zhuǎn)換為對(duì)應(yīng)的時(shí)間。然后操作系統(tǒng)時(shí)間與硬件時(shí)間就獨(dú)立運(yùn)行,相互不影響,我們

通過應(yīng)用程序獲取的時(shí)間用的都是操作系統(tǒng)時(shí)間。這一步是開機(jī)時(shí)os自動(dòng)完成的。

2、主機(jī)運(yùn)行過程中,通過ntp保證osclock與國(guó)際原子時(shí)同步,再將osclock同步到hwclock。這一步需要自己配置實(shí)現(xiàn)

3、關(guān)機(jī)時(shí),osclock寫入hwclock。這一步是關(guān)機(jī)時(shí)os自動(dòng)完成的。不過我們要考慮異常關(guān)機(jī)的情況,當(dāng)異常關(guān)機(jī)時(shí),osclock可能沒有寫入hwclock,這就是為什

么在第2步中將osclock定時(shí)刷入hwclock的原因。如果不定時(shí)刷入,那osclock與hwclock差距比較大時(shí),若異常關(guān)機(jī),osclock就丟掉了,再開機(jī)時(shí),osclock就是

錯(cuò)誤的,在第一個(gè)ntp同步到來(lái)時(shí),osclock就一直是錯(cuò)誤的。而且如果使用的是ntpd,ntpd是漸進(jìn)調(diào)整,要經(jīng)過多個(gè)ntp同步周期后才會(huì)將osclock調(diào)整為國(guó)際原子

時(shí),另外,如果osclock與ntp server的時(shí)間差超過1000秒,那ntp server就不會(huì)更新osclock了。

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

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

codetc@webubuntu:~$ date -r
tue, 17 dec 2013 18:23:01 +0800

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

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

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

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.選擇國(guó)家:中國(guó)

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

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.選擇時(shí)區(qū):北京時(shí)間

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

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.確認(rèn)驗(yàn)證:

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

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.復(fù)制文件到/etc目錄下

sudo cp /usr/share/zoneinfo/asia/shanghai /etc/localtime

7.更新時(shí)間

sudo ntpdate time.windows.com

8.修改時(shí)間以后,修改硬件cmos的時(shí)間

sudo hwclock --systohc

讀到這里,這篇“ubuntu系統(tǒng)怎么修改時(shí)區(qū)和時(shí)間”文章已經(jīng)介紹完畢,想要掌握這篇文章的知識(shí)點(diǎn)還需要大家自己動(dòng)手實(shí)踐使用過才能領(lǐng)會(huì),如果想了解更多相關(guān)內(nèi)容的文章,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。

當(dāng)前題目:ubuntu系統(tǒng)怎么修改時(shí)區(qū)和時(shí)間
文章路徑:http://aaarwkj.com/article10/ggphdo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供響應(yīng)式網(wǎng)站、定制網(wǎng)站做網(wǎng)站網(wǎng)站維護(hù)、網(wǎng)站改版App開發(fā)

廣告

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

成都定制網(wǎng)站網(wǎng)頁(yè)設(shè)計(jì)
久久成人激情免费视频| 91精品国产色综合久久不| 夫妻爱爱视频在线观看| 色悠悠色综合视频在线| 97资源在线公开视频| 美女丝袜诱惑国产在线观看| 日韩精品成人一区二区三区免费| 99国产精品欧美一区二区| 美女性生活免费视频网站| 国产精品久久一区二区三区蜜桃 | 久久亚洲精品国产精品黑人| 日韩精品国产一区二区在线| 我要看国产一级内射片| 成人黄色动作片在线观看| 熟女另类视频在线观看| 69人妻一区二区三区蜜桃| 日本高清免费播放一区二区| 成人永久免费播放平台| 一区二区三区欧美日韩在线| 精品少妇人妻av免费久久久| 日韩一级精品电影网| 亚洲国产日韩欧美在线播放| 91深夜在线免费观看| 久久精品有码视频免费观看| 黑人巨大亚洲一区二区久| 青青草原成年人免费看| 日韩一区二区高清视频在线观看| 欧美一区二区三区日韩色| 一区二区在线观看激情| 免费在线av一区二区| 五十路八十路息与子交尾| 麻豆精品国产粉嫩av| 亚洲图文一区二区三区四区| 欧美日韩午夜久久免费| 国产亚洲精品国产福利久久| 蜜桃精品视频在线播放| 午夜高清影院免费观看| 偷拍福利视频一区二区三区| 国产三级国产精品国产国在线观看| 91伊人激情综合久久| 久久av一区二区三区.|