ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Linux自动更新时间

Linux自动更新时间

原创 Linux操作系统 作者:xsdan 时间:2009-12-29 09:54:49 0 删除 编辑
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/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    96
  • 访问量
    926965