Chinaunix

标题: crontab中ntpdate不生效问题 [打印本页]

作者: yangzhigang    时间: 2009-07-15 17:41
标题: crontab中ntpdate不生效问题
crontab中ntpdate不生效问题
总结:杨志刚

前两天检查服务器时,发现系统(linux)的时间不对。
用crontab -l查,发现有定时任务:
10 * * * * ntpdate 192.168.10.23

所以,得出crontab中的这个任务没有执行,直接运行ntpdate 192.168.10.23是可以进行时钟同步的。

于是,crontab -e进行修改:
10 * * * * /usr/sbin/ntpdate 192.168.10.23

并执行service crond restart。发再问题解决!



本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/71257/showart_1997298.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2