centos 定时任务:

编辑定时任务列表:

crontab -u root -e

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

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

 

重启定时任务:

service crond restart

posted on 2019-08-01 15:18  lippor  阅读(908)  评论(0编辑  收藏  举报