标签:img aliyun compose usr color rgb info packagist bin
1、使用命令下载
curl -sS https://getcomposer.org/installer | php
2.下载之后设置环境变量
mv composer.phar /usr/local/bin/composer
3.修改权限,否则执行会出错
chmod -R 777 /usr/local/bin/composer
4.修改镜像地址为阿里云
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
5.验证
composer -v
安装成功。
标签:img aliyun compose usr color rgb info packagist bin
原文地址:https://www.cnblogs.com/wjs2019/p/14844463.html