差異處
這裏顯示兩個版本的差異處。
| 下次修改 | 前次修改 | ||
| ntp [2016/11/09 22:04] – 建立 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 | ||
| sudo ntpd -gq | sudo ntpd -gq | ||
| sudo service ntp start | sudo service ntp start | ||
| + | </ | ||
| - | or | + | via ntpdate |
| + | < | ||
| ntpdate ntp.ubuntu.com | ntpdate ntp.ubuntu.com | ||
| + | </ | ||
| + | ====== ntp server ====== | ||
| + | 如果出現 '' | ||
| + | < | ||
| + | server 127.127.1.0 | ||
| + | fudge 127.127.1.0 stratum 8 | ||
| + | </ | ||