内容简介:文章目录已不推荐 无需重启1、启动
文章目录 [隐藏]
队列运行与使用
启动方式
queue:work
/usr/local/bin/php /code-path/artisan queue:work redis --queue=default,abc --sleep=3 --tries=3 --sleep 指定休眠时间 --tries 指定重试次数 --queue 指定队列名称 更新代码需要重启 /usr/local/bin/php /code-path/artisan queue:restart
queue:listen
已不推荐 无需重启
supervisor进程监控
安装supervisor
pip install supervisor 生成配置文件 echo_supervisord_conf > /etc/supervisord.conf 可能会报:need meld > 3.6.5 禁用meld即可 启动 supervisord -c /etc/supervisord.conf
配置supervisor
[program:queue] process_name=%(program_name)s_%(process_num)02d command=/usr/local/bin/php /code-path/artisan queue:work redis --queue=default,abc --sleep=3 --tries=3 autostart=true autorestart=true ;user=forge numprocs=3 redirect_stderr=true stdout_logfile=/code-path/storage/logs/queue.log
supervisor常用命令
1、启动
supervisord -c /etc/supervisord.conf
2、管理
/usr/bin/supervisorctl -c /etc/supervisord.conf
status 查看当前状态 update 更新相关配置
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
About Face 3
Alan Cooper、Robert Reimann、David Cronin / John Wiley & Sons / 2007-5-15 / GBP 28.99
* The return of the authoritative bestseller includes all new content relevant to the popularization of how About Face maintains its relevance to new Web technologies such as AJAX and mobile platforms......一起来看看 《About Face 3》 这本书的介绍吧!