crontab -e
内容如下:
*/30 * * * * /usr/sbin/ntpdate 192.168.114.128 &> /dev/null
#min hour day month week
#every 30 minutes update time from the ntp server without email for root user
本文介绍了一个具体的crontab定时任务配置示例,每30分钟从指定的NTP服务器更新时间,同时确保不会为root用户发送邮件通知。通过这个实例,读者可以了解如何使用crontab进行精确的时间同步任务设定。
crontab -e
内容如下:
*/30 * * * * /usr/sbin/ntpdate 192.168.114.128 &> /dev/null
#min hour day month week
#every 30 minutes update time from the ntp server without email for root user
916

被折叠的 条评论
为什么被折叠?