由 strong.net 在 11-16-2004 07:48 发表:
待服器時間同步.
[root@Strong root]# ntpdate time.stdtime.gov.tw
那個 time.stdtime.gov.tw 是我們剛剛建立的 NTP Server ,您也可以選擇
time.stdtime.gov.tw 這部主機來校時喔!
21 Aug 10:05:29 ntpdate[23420]: step time server time.stdtime.gov.tw offset -236.117047 sec
[root@Strong root]# hwclock -w
這樣時間就修正了!若要每日進行時間校正,可以寫入 cron
[root@Strong root]# vi /etc/crontab
加入這一行:
10 5 * * * root /usr/sbin/ntpdate time.stdtime.gov.tw ; /sbin/hwclock -w
__