独角数卡
-
新建一个进程守护
-
名称随便设置
-
启动用户是
root
-
运行目录是你的网站目录
/opt/1panel/apps/openresty/openresty/www/sites/你的网址/index
-
启动命令是
docker exec 你的php容器名称 php /www/sites/你的网址/index/artisan queue:work
-
确认即可
兰空图床
流程是一样的
只有命令不一样
docker exec imgczl php /www/sites/img.czl.net/index/artisan queue:work --queue=emails,images,thumbnails
计划任务
这里用兰空图床做示例
php /www/sites/img.czl.net/index/artisan schedule:run >> /dev/null 2>&1