差異處
這裏顯示兩個版本的差異處。
| 兩邊的前次修訂版 前次修改 | |||
| ntp [2016/11/30 22:28] – jz | ntp [2016/11/30 22:29] (目前版本) – jz | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| ====== set time ====== | ====== set time ====== | ||
| + | < | ||
| date --set=" | date --set=" | ||
| date --set=" | date --set=" | ||
| - | ===== 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 | ||
| + | </ | ||
| ====== update via ntp ====== | ====== update via ntp ====== | ||
| + | via ntpd | ||
| < | < | ||
| sudo service ntp stop | sudo service ntp stop | ||
| 行 16: | 行 18: | ||
| sudo service ntp start | sudo service ntp start | ||
| </ | </ | ||
| - | or | ||
| + | via ntpdate | ||
| + | < | ||
| ntpdate ntp.ubuntu.com | ntpdate ntp.ubuntu.com | ||
| + | </ | ||
| ====== ntp server ====== | ====== ntp server ====== | ||
| 如果出現 '' | 如果出現 '' | ||