11 Star 59 Fork 28

杨洋 / Ity

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README-SUPERVISOR.md 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
杨洋 提交于 2020-12-30 13:42 . UPDATE TO LARAVEL8

#SUPERVISOR

参考文章

CentOS supervisor 安装与配置 (Laravel 队列示例) supervisor 安装配置使用

代码设置

  1. QUEUE_CONNECTION=redis 指定队列驱动程序的连接配置

LINUX CENTOS 安装 SUPERVISOR

安装supervisor很简单,通过easy_install就可以安装

  1. yum install python-setuptools
  2. easy_install supervisor
  3. 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
PHP
1
https://gitee.com/pleaseyang/Ity.git
git@gitee.com:pleaseyang/Ity.git
pleaseyang
Ity
Ity
master

搜索帮助