2014-08-29 45 views
1

在全球范围内安装作曲家的步骤有:https://getcomposer.org/doc/00-intro.md#globally卷曲不能下载Composer安装,抱怨8888端口

的命令有:

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

但原来的命令: curl -sS https://getcomposer.org/installer | php 回报:curl: (7) Failed connect to getcomposer.org:8888; Connection refused

如果把:80在URL中的命令:curl -sS https://getcomposer.org:80/installer | php
回报:curl -sS -P 80 https://getcomposer.org/installer | php
回报:curl: (7) Failed connect to getcomposer.org:8888; Connection refused

如果与-P命令tell端口curl: (7) Failed connect to getcomposer.org:8888; Connection refused

有人在这里:Installing composer using vagrant, hhvm, and Ubuntu 14.04
告诉尝试wget的我试着和结果:

命令:wget https://getcomposer.org/installer
返回:--2014-08-29 19:13:24-- https://getcomposer.org/installer Connecting to 127.0.0.1:8888... failed: Connection refused

该命令:wget https://getcomposer.org:80/installer
returns: --2014-08-29 19:13:40-- https://getcomposer.org:80/installer Connecting to 127.0.0.1:8888... failed: Connection refused

林在Linux Mint的Debian的安装版,并将其抱怨端口8888
我可以ping getcomposer.orgtelnet getcomposer.org:80
有人能看到什么即时做错了什么?
有人投票反对这个问题,但无法告诉它有什么问题

+0

Curl应该连接到端口443上的getcomposer.org作为其https网站。 'curl -v https://getcomposer.org/installer -o/dev/null'的输出是什么? – Yuvika 2014-08-30 11:04:10

+1

这看起来像是我的本地代理。是否有任何有关“代理”定义的环境变量? – Sven 2014-08-30 18:38:41

回答

3

这不是一个完美的答案,但它解决了我。

只需点击网址

https://getcomposer.org/installer 

它会下载一个文件名为 “安装程序”, 现在去那里下载

运行此命令的下载文件夹

php installer 

它会给你新的文件composer.phar

这个我s您将从该命令中获得的确切文件

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