Can use ntpdate or rdate command to sync the datetime with remote server.
i.e.:
or
Also, sync the remote server periodically is a good idea!
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@]
# auto sync with time server at 0:00 everyday
0 0 * * * rdate -t 60 -s stdtime.gov.hk
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/262387/viewspace-1030079/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/262387/viewspace-1030079/