Linux下全局安装composer方法

下载composer, mv 到 /usr/local/bin 下

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
composer config -g repo.packagist composer https://packagist.phpcomposer.com  //切换国内源