使用ntpd校時 - Linux

Table of Contents

我看到很多地方說,ntpdate 已經 deprecated ,
不建議使用,要改用 ntpd.
但是…查了一陣子,好像從來沒看過客戶端的 ntpd 要怎麼用?

簡單講,下面這個指令要怎麼用 ntpd 取代?
ntpdate time.stdtime.gov.tw

如果直接把ntpdate改成ntpd,會出現錯誤訊息:
ntpd: Command line arguments not allowed

或是… ntpd 只能做為校時伺服器使用?

--

All Comments

Elma avatarElma2014-03-21
自己把自己架設為ntp server ,不允許外部查詢
James avatarJames2014-03-22
ntpd會自己跟ntp.conf裡指定的server校時, 不用手動執行
Frederic avatarFrederic2014-03-26
設好ntp.conf然後sudo ntpd -q