服务器命令行执行: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

相关文章:

  • 2021-07-05
  • 2021-12-14
  • 2022-12-23
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
  • 2021-08-01
  • 2021-09-13
相关资源
相似解决方案