亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 723 | 回復(fù): 0
打印 上一主題 下一主題

Linux操作系統(tǒng)下關(guān)于兩種時(shí)鐘設(shè)置的問題 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2008-11-16 16:29 |只看該作者 |倒序?yàn)g覽

                       
               
                http://www.webjx.com  更新日期:2007-08-06 08:19  出處:網(wǎng)頁教學(xué)網(wǎng)  作者:
               
               
以下內(nèi)容是關(guān)于幫助你在Linux下設(shè)置日期和時(shí)間的一些步驟,也包含了一點(diǎn)ntpd時(shí)間同步的內(nèi)容。特別提醒的是在發(fā)行版本的限制是red hat系列,包括fedora,centos,redflag,unbreakable linux等。
There are two clocks to configure in Linux, the
hardware clock and the system clock. The hardware clock determines the
system clock on system boot. While the system is running, changes to
one of these doesn't affect the other.
在Linux下有兩個(gè)時(shí)鐘需要配置,硬件時(shí)鐘和系統(tǒng)時(shí)鐘。硬件時(shí)鐘在系統(tǒng)啟動(dòng)時(shí)決定系統(tǒng)時(shí)鐘,當(dāng)系統(tǒng)處于運(yùn)行狀態(tài)下時(shí),修改其中任何一個(gè)并不能對另一個(gè)默認(rèn)生效。
Note: it's best to set the hardware clock and have the
system clock be set upon a reboot. Changing the system clock by using
the date program on a running system could cause date discontinuities
and consequently problems. If you will be using ntpd, you probably
don't need to set either of these clocks (unless the current time is
more than 1000s off the real time). Just setup ntpd and let ntpd adjust
the time (it will do it in small steps to keep system timestamps
reliable).
現(xiàn)在大部分的發(fā)行版本在圖形界面下都提供了時(shí)鐘設(shè)置工具,例如kde,gnome都有友好的 圖形化工具,這里就不多說了。
You can use timeconfig to configure the timezone and UTC settings.
Timeconfig will update /etc/sysconfig/clock and /etc/localtime.
Set the time zone manually if not already set.
Linux uses the file /etc/localtime to determine the time zone. This
file should be either a copy of the appropriate timezone file from the
directory /usr/share/zoneinfo or a symbolic link. If your time zone is
incorrect, create a symbolic link to the appropriate timezone file.
# ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
Set whether hwclock uses local time or UTC
Edit the file /etc/sysconfig/clock and change "UTC=" to true or false.
If you have a dual-boot system with Windows, using UTC may cause problems for Windows.
Set the system clock
# date MMDDhhmmCCYY.ss
where MM is month, DD is day, hh is hour, mm is minutes,
CCYY is year and ss is seconds. Time should be in 24-hour notation.
To only set the time:
# date -s hh:mm:ss
Set the hardware clock
To set the hardware clock to the current system clock:
# setclock
this method looks at /etc/sysconfig/clock to determine whether the hardware clock is set to UTC
Another method:
# hwclock --systohc# hwclock --systohc --utc
use the second option if you use UTC.
Set hwclock manually:
# hwclock --set --date="9/22/96 16:45:05"
Everytime you use the hwclock --set command,
it will create or edit the file /etc/adjtime to determine the systematic drift.
Once you have some history,
you can use the --adjust option to adjust the hardware clock appropriately.
Run as a cron job if you want the clock to adjust automatically on a regular schedule.
Don't use the --adjust function when using ntpd since ntpd will turn the "11 minute mode" on,
which is best left alone. See the hwclock manpage for more info.
Setup ntpd for automatic synchronization with a remote server.
Run Red Hat's setup utility to make ntpd start on boot up and edit /etc/ntp.conf
Set server and fudge options:
server time.nist.govfudge  time.nist.gov stratum 10
Enable multicastclient:
multicastclient     # listen on default 224.0.1.1
Edit /etc/sysconfig/ntpd if necessary. The default should be fine.
Start the ntpd daemon:
# service ntpd start
               
               
               

本文來自ChinaUnix博客,如果查看原文請點(diǎn):http://blog.chinaunix.net/u/5737/showart_1418021.html
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP