duanao6704 2017-06-02 07:56
浏览 380
已采纳

在CentOS 7上安装PHP Composer失败

I'm trying to install Magento 2.1 using PHP composer.

http://idroot.net/tutorials/how-to-install-php-composer-on-centos-7/

I found the url above to install PHP composer for Centos 7.

on step 2 it failed:

curl -sS https://getcomposer.org/installer | php

this is the error I get

"curl: (6) Could not resolve host: php; Name or service not known

Thanks for the help guys!

  • 写回答

3条回答 默认 最新

  • doulong1987 2017-06-02 08:05
    关注
    wget https://getcomposer.org/composer.phar
    chmod +x composer.phar
    mv composer.phar /usr/local/bin/composer
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?