Homestead 中启动 PHP artisan queue:work 卡死的解决办法

  • Homestead 环境下按教程执行以下代码时
    $ php artisan queue:work

    出现以下问题:

    • 监控队列长时间无反应;
    • 提交订单返回 500 错误,并提示:
      "Please remove or rename the Redis facade alias in your \"app\" configuration file in order to avoid collision with the PHP Redis extension."

解决方案:

$ sudo apt-get update
$ sudo apt install php-redis
$ sudo php -v // 查看虚拟机的 php 版本
$ sudo service php7.2-fpm restart // 用自己的 php 版本替换掉 7.2 

重新执行

$ php artisan queue:work

Homestead 中启动 PHP artisan queue:work 卡死的解决办法

原文链接:https://github.com/laravel/framework/issue...

《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
讨论数量: 2

file 为什么我的 redis 链接不上 但是在提交订单的时间就能连接上 大佬你遇到过吗

5年前 评论
mantou_1 4年前

大哥 666,这比编译安装简单多了啊。按照这个解决了

4年前 评论