linux 设置时间服务器

使用 crontab 定期同步。
执行 crontab -e 增加同步任务
输入 1 * * * * /usr/sbin/ntpdate x.x.x.x   --每小时的第一分钟做一次时间同步

执行 /etc/init.d/crond restat

posted @ 2019-03-21 12:03  lcinx  阅读(460)  评论(0编辑  收藏  举报