php 消息队列之安装think-queue: composer require topthink/think-queue遇到的错误

准备下载

最开始使用composer官网作为packagist,下载超时,科学上网也安装不了

[Composer\Downloader\TransportException]
  curl error 28 while downloading https://repo.packagist.org/p2/symfony/process.json: Timeout was reached

将地址换为国内镜像(全局 去点 -g 就是只当前项目)

composer config -g repo.packagist composer https://packagist.phpcomposer.com

然后执行

composer require topthink/think-queue

发现没有think-queue,这个包。

再切换成最后将packagit换成阿里云的地址:

 全局配置阿里云镜像:

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

仅当前工程:

c

你可能感兴趣的:(composer,MQ,composer,缓存,php)