下面由composer教程栏目给大家介绍centos7怎么安装composer,希望对需要的朋友有所帮助!
url -sS getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
chmod -R 777 /usr/local/bin/composer
composer -v
使用阿里镜像
composer config -g repo.packagist composer mirrors.aliyun.com/composer/
取消配置还原到默认的地址
composer config -g –unset repos.packagist
查看全局设置:composer config -gl
以上是centos7怎么安装composer的详细内容。更多信息请关注PHP中文网其他相关文章!