企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
``` 客户端设置定时任务 linux: 设置每分钟执行: 编辑vi /etc/crontab \* \* \* \* \* www /path/to/php /path/to/yun\_shop/artisan cron:run 说明: www:运行nginx、php的用户 /path/to/php:php的绝对路径 /path/to/yun\_shop/artisan:artisan的绝对路径 cron:run:运行任务 开机时必须执行 /path/to/php /path/to/yun\_shop/artisan queue:work --sleep=3 --tries=3 这是任务队列,不开启无法执行消息通知,也需要web服务用户执行 说明: /path/to/php:php的绝对路径 /path/to/yun\_shop/artisan:artisan的绝对路径 queue:work:运行队列 laravel官方方法:[https://laravel.com/docs/5.3/queues#supervisor-configuration](https://laravel.com/docs/5.3/queues#supervisor-configuration) ```