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

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

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

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

 

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

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

相关文章
相关标签/搜索