1、curl-sS https://getcomposer.org/installer|php
2、mv composer.phar/usr/local/bin/composer
3、composer config-g repo.packagist composer https://mirrors.aliyun.com/composer/
1、curl-sS https://getcomposer.org/installer|php
2、mv composer.phar/usr/local/bin/composer
3、composer config-g repo.packagist composer https://mirrors.aliyun.com/composer/