centos7如何安装composer

linux安装composer非常简单,只需要两行命令

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

执行第一行命令,如果提示php:command not found,就要把php的二进制文件复制到/usr/bin下面去

cp /usr/local/php/bin/php /usr/bin/

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: