Install Composer under Linux

Install Composer

Setting up the environment for php

vim /etc/profile  
export PATH="$PATH:/usr/local/php/bin"

Download and install composer

cd /mnt

curl -sS https://getcomposer.org/installer | php 
#curl -sS https://getcomposer.org/installer | /usr/local/php/bin/php 
mv composer.phar /usr/local/bin/composer 

Change composer mirror source

 composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/   

View installation

composer

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_39218464/article/details/112754831