Linux自动更新时间
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
# auto sync with time server at 0:00 everyday
0 0 * * * rdate -t 60 -s stdtime.gov.hk
posted on 2012-09-06 11:15 cn三少<script></script> 阅读(203) 评论(0) 收藏 举报
浙公网安备 33010602011771号