centos下安装composer

需要使用到curl,没有的话需要 yum  -y install curl     ###安装

一、下载:curl -sS https://getcomposer.org/installer | php (如果是网络原因多试几次)

二、移动composer.phar移动到环境下让其变成可执行:mv composer.phar /usr/local/bin/composer

三、验证版本: composer -V
四、升级composer到最新版命令:/bin/composer self-update

猜你喜欢

转载自blog.csdn.net/weixin_42207486/article/details/80655636