代码拉取完成,页面将自动刷新
#SUPERVISOR
CentOS supervisor 安装与配置 (Laravel 队列示例) supervisor 安装配置使用
QUEUE_CONNECTION=redis
指定队列驱动程序的连接配置安装supervisor很简单,通过easy_install就可以安装
yum install python-setuptools
easy_install supervisor
echo_supervisord_conf > /etc/supervisord.conf
配置
vim /etc/supervisord.conf
例
[program:ity-notification]
process_name=%(program_name)s_%(process_num)02d
command=php /data/wwwroot/default/artisan queue:work redis --tries=3 --queue=notification
autostart=true
autorestart=true
user=root
numprocs=3
redirect_stderr=true
stdout_logfile=/data/wwwroot/default/storage/logs/queue-notification.log
启动 supervisor
supervisord -c /etc/supervisord.conf
关闭 supervisor
supervisorctl shutdown
重新载入配置
supervisorctl reload
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。