date时间同步

时间:2021-09-01 23:11:12   收藏:0   阅读:27

yum install ntpdate -y 安装时间同步工具
ntpdate ntp.ntsc.ac.cn 同步时间
crontab -l 列出定时任务
crontab -e 创建一个定时任务
定时任务参数,同步整点时间
0 * * * * /usr/sbin/ntpdate ntp.ntsc.ac.cn >> /tmp/autontpdate 2>&1

原文:https://www.cnblogs.com/Dreamsoft/p/15209856.html

评论(0)
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!