Linux自動更新時間

xsdan發表於2009-12-29
Can use ntpdate or rdate command to sync the datetime with remote server.

i.e.:
# ntpdate remote_server

or
# rdate -s remote_server

Also, sync the remote server periodically is a good idea!
# crontab -e

# auto sync with time server at 0:00 everyday
0 0 * * * rdate -t 60 -s stdtime.gov.hk
[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/262387/viewspace-1030079/,如需轉載,請註明出處,否則將追究法律責任。

相關文章