Linux环境 tp5.1 Could not open input file: think

时间:2023-03-08 22:19:14

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

Linux环境 tp5.1 Could not open input file: think

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

Linux环境 tp5.1 Could not open input file: think

Linux环境 tp5.1 Could not open input file: think

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

Linux环境 tp5.1 Could not open input file: think

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

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