Linux自动更新时间

it2022-07-01  84

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

转载于:https://www.cnblogs.com/bevis/archive/2013/06/16/3138252.html


最新回复(0)