@echo off chcp 65001 echo Laravel 队列工作器启动... echo 按 Ctrl+C 停止 :start php artisan queue:work --queue=default --tries=3 --timeout=3600 --max-time=3600 echo [%date% %time%] 队列工作器停止,3秒后重启... timeout /t 3 /nobreak >nul goto start