- 下载composer
curl -sS https://getcomposer.org/installer | php
- 移动composer.phar移动到环境下让其变成可执行
mv composer.phar /usr/local/bin/composer
- 验证版本
composer -V
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
composer -V