crontab定时

yum install -y vixie-cron --安装定时服务

每分钟更新一次商品
crontab -e
* * * * * /usr/bin/curl http://test.wadao.com/dg/task/updateGoodsVolume
分 时 日 月 年星期

tail -f /var/log/cron --查看运行情况


/sbin/service crond start //启动服务
/sbin/service crond stop //关闭服务
/sbin/service crond restart //重启服务
/sbin/service crond reload //重新载入配置

posted @ 2017-12-20 11:01  ヾJ﹍Hヾ  阅读(121)  评论(0编辑  收藏  举报