讓系統時間與NTP Server同步:
ntpdate -s clock.stdtime.gov.tw
ntpdate -s tick.stdtime.gov.tw
ntpdate -s time.stdtime.gov.tw
ntpdate -s tock.stdtime.gov.tw
ntpdate -s watch.stdtime.gov.tw

每天對時
編輯文件 /etc/crontab,設定每天中午自動對時。
0 12 * * *  root  /usr/sbin/ntpdate time.stdtime.gov.tw > /dev/null 2>&1

寫入硬體
hwclock [-rw]
用途:查閱 BIOS 時間,並且寫入更改過的時間
hwclock -r #讀出目前 BIOS 內的時間參數
hwclock -w #將目前的 Linux 系統時間寫入 BIOS 當中

arrow
arrow
    全站熱搜

    BB 發表在 痞客邦 留言(0) 人氣()