ntp

差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

兩邊的前次修訂版 前次修改
ntp [2016/11/30 22:28] jzntp [2016/11/30 22:29] (目前版本) jz
行 1: 行 1:
 ====== set time ====== ====== set time ======
 +<code>
 date --set="23 June 1988 10:00:00" date --set="23 June 1988 10:00:00"
 date --set="10:00:00" date --set="10:00:00"
  
-===== Set the Hardware Clock to the current System Time ===== +Set the Hardware Clock to the current System Time
 # hwclock --systohc # hwclock --systohc
-Set the System Time from the Hardware Clock. 
  
 +Set the System Time from the Hardware Clock.
 # hwclock --hctosys # hwclock --hctosys
 +</code>
  
 ====== update via ntp ====== ====== update via ntp ======
 +via ntpd
 <code> <code>
 sudo service ntp stop sudo service ntp stop
行 16: 行 18:
 sudo service ntp start sudo service ntp start
 </code> </code>
-or 
  
 +via ntpdate
 +<code>
 ntpdate ntp.ubuntu.com ntpdate ntp.ubuntu.com
 +</code>
 ====== ntp server ====== ====== ntp server ======
 如果出現 ''Server dropped: strata too high'',在 ntp.conf 新增以下 如果出現 ''Server dropped: strata too high'',在 ntp.conf 新增以下
  • ntp.1480516115.txt.gz
  • 上一次變更: 2016/11/30 22:28
  • jz