centos安装composer以及使用国内镜像
需要使用到curl,没有的话需要 yum -y install curl ###安装
下载composer.phar文件
curl -sS https://getcomposer.org/installer | php
将composer.phar移动到环境变量中并且更名为composer
mv composer.phar /usr/local/bin/composer
使用国内镜像
composer config -g repo.packagist composer https://packagist.phpcomposer.com
还没有评论,来说两句吧...