运行supervisorctl更新命令laravel后EC2实例停止工作
所以我第二次遇到这个问题。第一次我停止该实例并创建一个新实例,因为我无法解决它,但在第二个实例中也发生了同样的情况。
我当时正在处理 Laravel 队列,并且必须让作业自动运行,因此按照下面的文档,我遵循了这些步骤。
https://laravel.com/docs/8.x/queues#supervisor-配置
一旦我运行“sudo Supervisorctl update”命令,整个实例就会停止工作。 SSH 也停止工作,因此不知道如何解决此问题。
Supervisor 的安装和添加 laravel-worker.conf 文件工作正常。此外,“sudo Supervisorctl reread”工作正常,但一旦我运行更新命令,整个实例就会停止工作。
请帮忙。
更新 Laravel-worker
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/mydomain.com/artisan queue:work
autostart=true
autorestart=true
user=ubuntu
numprocs=8
redirect_stderr=true
stdout_logfile=/var/www/mydomain.com/worker.log
So I just faced this issue second time. First time I stopped that instance and created a new one as I coudn't resove it but happend the same in the second instance.
I was working on the Laravel queue and had to make the jobs run automatically so as per their document below I followed the steps.
https://laravel.com/docs/8.x/queues#supervisor-configuration
As soon as I run the "sudo supervisorctl update" command the whole instance stops working. SSH is also stop working so not sure how to resolve this issue.
The installation of supervisor and adding the laravel-worker.conf file works fine. Also the "sudo supervisorctl reread" works fine but as soon I run the update command, the whole instance stops working.
Please help.
updaing the Laravel-worker
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/mydomain.com/artisan queue:work
autostart=true
autorestart=true
user=ubuntu
numprocs=8
redirect_stderr=true
stdout_logfile=/var/www/mydomain.com/worker.log
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论