supervisorctl 不使用 Sqs 我得到错误 [英] supervisorctl without using Sqs which i get error on that

查看:49
本文介绍了supervisorctl 不使用 Sqs 我得到错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装和配置 supervisor 后,我在 Laravel 网络应用程序上有一些作业和队列,我的服务器操作系统是 centOs 并在运行后 supervisor 我收到这个错误:

After install and configure supervisor i have some jobs and queue on Laravel web application, my server os is centOs and after run supervisor i get this error:

Symfony\Component\Debug\Exception\FatalThrowableError  : Class 'Aws\Sqs\SqsClient' not found

我不使用 Amazon 服务器,也不在 laravel 上安装此软件包,我正在尝试运行 queue:work 命令来监听作业和队列.我的配置:

I dont use Amazon server and i dont install this package on laravel, i'm trying to run queue:work command to listen jobs and queues. my configuration:

[program:laravel-worker]
process_name=%(program_name)s_%(process_num)s
command=php /home/myApp/artisan queue:work redis --timeout=120 --sleep=3 --tries=3 --daemon
autostart=true
autorestart=true
;user=forge
numprocs=1
redirect_stderr=true
stdout_logfile=/home/myApp/worker.log

队列配置:

'default' => env('QUEUE_DRIVER', 'redis'),

我该如何解决这个问题?

how can i resolve this problem?

推荐答案

看起来您想使用 Redis 作为您的队列提供程序,在这种情况下,请确保服务器中的 .env 文件没有 QUEUE_CONNECTION=sqs

it looks like you want to use Redis as your queue provider, in that case make sure that the .env file in your server doesn't have QUEUE_CONNECTION=sqs

如果要使用Redis,应该是QUEUE_CONNECTION=redis

if you want to use Redis, it should be QUEUE_CONNECTION=redis

这篇关于supervisorctl 不使用 Sqs 我得到错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆