服务器命令行执行:php /项目目录/think queue:listen  报如下错误

Linux环境 tp5.1 Could not open input file: think 随笔 第1张

初步分析是 queue:listen 在代码中要重启一个work进程,用到了think ,导致找不到该文件的路径

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

Linux环境 tp5.1 Could not open input file: think 随笔 第2张

Linux环境 tp5.1 Could not open input file: think 随笔 第3张

 改用 php /项目目录/think queue:work  则没有报错(建议服务器开一个守护进程,监听队列的进程情况,防止死掉重启)

 Linux环境 tp5.1 Could not open input file: think 随笔 第4张

work与listen的区别:https://github.com/coolseven/notes/blob/master/thinkphp-queue/README.md

相关资料:https://github.com/top-think/think-queue/issues/33

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄