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博客 ” ,链接:https://blog.itpub.net/262387/viewspace-1030079/
,如需转载,请注明出处,否则将追究法律责任。