2014-08-29 68 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