【发布时间】:2014-10-23 23:32:44
【问题描述】:
全局安装composer的步骤有:https://getcomposer.org/doc/00-intro.md#globally
命令有:
curl -sS https://getcomposer.org/installer | phpmv composer.phar /usr/local/bin/composer
但原来的命令:
curl -sS https://getcomposer.org/installer | php
返回:curl: (7) Failed connect to getcomposer.org:8888; Connection refused
如果将:80 放在网址上,则命令:curl -sS https://getcomposer.org:80/installer | php
返回:curl: (7) Failed connect to getcomposer.org:8888; Connection refused
如果用-P 告诉端口,命令:curl -sS -P 80 https://getcomposer.org/installer | php
返回: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.org 和 telnet getcomposer.org:80
有人可以看到我做错了什么吗?
有人投票反对这个问题,但无法说出它有什么问题
【问题讨论】:
-
Curl 应该作为 https 网站连接到端口 443 上的 getcomposer.org。
curl -v https://getcomposer.org/installer -o /dev/null的输出是什么? -
这对我来说就像一个本地代理。是否定义了与“代理”相关的环境变量?
标签: php linux curl composer-php