鍍金池/ 問答/PHP  數(shù)據(jù)庫(kù)/ thinkphp5.0無(wú)法使用think-queue包,php think qu

thinkphp5.0無(wú)法使用think-queue包,php think queue:work命令不存在

最近用隊(duì)列,用了官方的隊(duì)列包top-think/think-queue,安裝后成功的將數(shù)據(jù)寫入了隊(duì)列,但是去消費(fèi)隊(duì)列,也就是使用php think queue:work --queue xxx時(shí),提示命令不存在,然后執(zhí)行php think 根本看不到queue開頭的command,也就是這個(gè)命令似乎在這個(gè)版本沒有?

D:\directory>php think queue:work



  [InvalidArgumentException]
  There are no commands defined in the "queue" namespace.




D:\directory>php think
Think Console version 0.1

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display this help message
  -V, --version         Display this console version
  -q, --quiet           Do not output any message
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  build              Build Application Dirs
  clear              Clear runtime file
  help               Displays help for a command
  list               Lists commands
 make
  make:controller    Create a new resource controller class
  make:model         Create a new model class
 optimize
  optimize:autoload  Optimizes PSR0 and PSR4 packages to be loaded with classmaps too, good for production.
  optimize:config    Build config and common file cache.
  optimize:route     Build route cache.
  optimize:schema    Build database schema cache.

有遇到過類似問題的兄弟嗎?

回答
編輯回答
筱饞貓

你好 我想咨詢一下 我開啟了think queue:listen之后 電腦就變得特別卡 是因?yàn)槲曳?wù)器的配置太低了么

2018年3月27日 23:46
編輯回答
貓館

解決了,是不小心把a(bǔ)pplication重命名為app了,在think中加載了application目錄,然后提示不存在的錯(cuò)誤信息

2018年2月7日 10:26