标签:配置 ocs com directory 内容 nbsp logfile stderr cto
第一步安装Supervisor
第二步设置配置文件 路劲etc/supervisor/conf.d
新建一个 conf文件 fenxi.conf
文件内容如下
[program:waaQueue]
command = php artisan queue:work --daemon
directory = /var/www/html/fenxi
process_name = %(program_name)s_%(process_num)s
numprocs = 1
autostart = true
autorestart = true
stdout_logfile = /var/www/html/fenxi/storage/logs/supervisor_waaQueue.log
stdout_logfile_maxbytes = 10MB
stderr_logfile =/var/www/html/fenxi/storage/logs/supervisor_wqqQueue.log
stderr_logfile_maxbytes = 10MB
重启
supervisorctl restart
重新加载配置文件
supervisorctl reread
标签:配置 ocs com directory 内容 nbsp logfile stderr cto
原文地址:https://www.cnblogs.com/hui413027075/p/9096994.html