1、下载composer.phar
1curl -sS https://getcomposer.org/installer | php
2、把composer.phar移动到环境下让其变成可执行
1mv composer.phar /usr/local/bin/composer
3、换中国镜像
1composer config -g repo.packagist composer https://packagist.phpcomposer.com
1、下载composer.phar
1curl -sS https://getcomposer.org/installer | php
2、把composer.phar移动到环境下让其变成可执行
1mv composer.phar /usr/local/bin/composer
3、换中国镜像
1composer config -g repo.packagist composer https://packagist.phpcomposer.com
本文标题:CentOS下Composer的安装和使用
本文链接:https://www.haomeiwen.com/subject/cvojgktx.html
网友评论