Linux 系統時間校對 - Linux

Cara avatar
By Cara
at 2010-03-18T17:01

Table of Contents

※ 引述《Adama (So Say We All.)》之銘言:
: ※ 引述《rdmtb (每一天都是晴天)》之銘言:
: : 只要一行指令 ,就能連桌面工具列的時間都調整同步:
: : sudo ntpdate time.stdtime.gov.tw
: : 如果只想知道時間:
: : ntpdate -q time.stdtime.gov.tw
: 其實ntpdate要被淘汰了,改用ntpd
: 另外你沒有配合hwclock -w來寫入BIOS時間
: GNOME的時間設定裡原先就有ntp校時的選項,
: 不用自己放在執行程式裡

沒這回事吧

ntpdate是client端

ntpd是server立

就算你安裝ntpd還是會安裝ntpdate,但ntpdate卻無法被你所用

ntpdate的好處,是馬上更新馬上就修改時間,

然後再配合hwclock寫入到硬體 達到真正同步

ntpd就不是了 ntpd的man-page寫到

server會慢慢的調整本身的時間

達到和參照主機的時間同步,時間還蠻久的

一般人都會想要早點將時間調到正確或靠近現在的時間

故而 我都會先安裝ntpdate

然後ntpdate 數次 直到誤差直小於小數點第五位以下

我才會安裝ntpd去讓系統自己和遠端參照主機同步

當然也是可以不安裝ntpd 直接用crond.hourly 設定ntpdate的Script去同步

也是可以達到同樣效果


--
這篇文章讓你覺得?════════════════════════
by ycat y
+ . .ˇ ˇ ˇˇ || c
﹀ ̄▽ ̄ ﹏≦b ︶ ̄y – ̄ a
新奇 溫馨 誇張 難過 實用 高興 無聊 生氣 t
═════════════════════════════════ ╯

--
Tags: Linux

All Comments

Caitlin avatar
By Caitlin
at 2010-03-19T09:21
實用
Anonymous avatar
By Anonymous
at 2010-03-23T02:06
Ding!!

如何重新定義機殼上的關機按鈕

Genevieve avatar
By Genevieve
at 2010-03-18T13:55
請問如何重新定義機殼上的 power 按鈕和 reset 按鈕? 比方讓 reset 按鈕:按下去,不會 reset 比方讓 power 按鈕:按一下開機,按一下開始 shutdown -P 或者說:按一下開機,再按一下是冬眠? - ...

cpuz

Sierra Rose avatar
By Sierra Rose
at 2010-03-18T13:35
想請教一下板上大大 linux作業系統下有像cpu-z的這種程式 可以很方便 快速的看電腦硬體況狀嗎 我有找到cpu-g 不過開不起來 不知道原因 一直說 File and#34;./cpu-gand#34;, line 344, in ? CPUG() File and#34;./cpu- ...

kopete

Jessica avatar
By Jessica
at 2010-03-18T11:07
我最近才在我的 nb 上面安裝 kubuntu desktop 請問 kopete 登入 MSN 之後, 我的朋友他用他的 Windows Live Messenger 要傳圖片或檔案給我 但是都傳不過來 請問是什麼原因,該如何解決呢? 謝謝 - ...

ubuntu 9.10 開機的錯誤訊息

Leila avatar
By Leila
at 2010-03-18T10:26
※ 引述《James042 (差羽鳥11)》之銘言: : one or more of the mounts listed in etc/fstab cannot yet be mounted : swap waiting for UUID = 0022f8f5.......很長一串碼 : 他叫我按ESC進入 ...

awk 如何找出兩檔案相同字串

Doris avatar
By Doris
at 2010-03-18T10:12
我有兩個檔案 a.txt b.txt ------------- ------------- abc111 abc123 abc555 abc111 abc222 abc124 cde666 cde123 cde333 cde125 cde444 cde126 ------- ...