编辑定时任务列表:

crontab -u root -e

定时任务管理:执行thinkphp函数

#每天零点每日零点清理超过24小时没有付款的订单
1 0 * * * curl https://***.com/index/Task/removeorder

 

重启定时任务:

service crond restart

相关文章: