|
|
(1)安装supervisor
- yum install supervisor
- systemctl start supervisord
- systemctl enable supervisord
复制代码
(2)配置thinkphp6.x执行队列 vim /etc/supervisord.d/think-queue.ini
- [program:think-queue]
- command=php /wwwroot/hall/xunyuan/think queue:work --daemon
- directory=/wwwroot/hall/xunyuan
- autostart=true
- autorestart=true
- startretries=3
- user=nginx
- numprocs=1
- redirect_stderr=true
- stdout_logfile=/var/log/supervisor/think-queue.log
复制代码
(3)更新与执行
- supervisorctl update
- supervisorctl start think-queue
复制代码
|
|