linux 设置时间服务器
使用 crontab 定期同步。
执行 crontab -e 增加同步任务
输入 1 * * * * /usr/sbin/ntpdate x.x.x.x --每小时的第一分钟做一次时间同步
执行 /etc/init.d/crond restat
使用 crontab 定期同步。
执行 crontab -e 增加同步任务
输入 1 * * * * /usr/sbin/ntpdate x.x.x.x --每小时的第一分钟做一次时间同步
执行 /etc/init.d/crond restat