今天分享下如何在centos系统里安装composer
一、下载composer
curl -sS https://getcomposer.org/installer | php
二、移动或复制composer到环境下可执行
cp composer.phar /usr/local/bin/composer
三、测试看是否安装成功
composer -V
四、全局安装
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer