centos安装composer以及使用国内镜像

ゝ一世哀愁。 2022-03-19 06:05 349阅读 0赞

需要使用到curl,没有的话需要 yum -y install curl ###安装

下载composer.phar文件

  1. curl -sS https://getcomposer.org/installer | php

将composer.phar移动到环境变量中并且更名为composer

  1. mv composer.phar /usr/local/bin/composer

使用国内镜像

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

发表评论

表情:
评论列表 (有 0 条评论,349人围观)

还没有评论,来说两句吧...

相关阅读