linux - Can't install composer on centos7.2, please give me some advice?
为情所困
为情所困 2017-05-16 13:31:43
0
2
581

为情所困
为情所困

reply all(2)
为情所困

If it is blocked, you can install it by overcoming the wall, or use domestic mirroring.
First make sure php is installed, then follow the steps below.

//下载安装脚本 - composer-setup.php - 到当前目录
php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');"
//执行安装过程。
php composer-setup.php
//删除安装脚本
php -r "unlink('composer-setup.php');"

Replace the full Packagist China image and modify the global configuration file of composer

composer config -g repo.packagist composer https://packagist.phpcomposer.com
过去多啦不再A梦

centos I don’t know if there is a composer in the yum source. You can try it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template