search

Home  >  Q&A  >  body text

linux - Can’t install composer on centos7.2, please give me some advice?

为情所困为情所困2782 days ago615

reply all(2)I'll reply

  • 为情所困

    为情所困2017-05-16 13:33:43

    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

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-16 13:33:43

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

    reply
    0
  • Cancelreply