如果我跑:
echo $http_proxy信息技术产出:
http://user:pass@host:port但当我跑的时候
wget www.google.com信息技术产出:
Resolviendo www.google.com... 209.85.195.104
Caching www.google.com => 209.85.195.104
Conectando a www.google.com|209.85.195.104|:80... Closed fd 3
falló: Expiró el tiempo de conexión.
Releasing 0x088293a8 (new refcount 1).
Reintentando.
--2010-07-07 19:40:00-- (intento: 2) http://www.google.com/
Found www.google.com in host_name_addresses_map (0x88293a8)
Conectando a www.google.com|209.85.195.104|:80...英文本:
Resolving www.google.com... 209.85.195.104
Caching www.google.com => 209.85.195.104
conecting to www.google.com|209.85.195.104|:80... Closed fd 3
fail: conection time has expired.
Releasing 0x088293a8 (new refcount 1).
retrying.
...我做错什么了?
注意: https_proxy和ftp_proxy具有相同的值。我已经尝试修改/etc/wgetrc并重新安装,但没有成功。
发布于 2010-07-08 01:56:51
谢谢你的调试日志。
因此,您显然没有使用您期望的基于该输出的env代理设置。
有关配置代理设置的其他方法,请参见http://www.gnu.org/software/wget/manual/wget.html#Proxies。
目前还不清楚您是否处于某种受控环境中,但您正在调用的wget也可能以某种方式进行了修改--也许有一个包装器脚本正在删除环境或禁用代理设置(--no-proxy)。file $(which wget)是否显示它是一个可执行文件?
发布于 2010-07-07 22:04:15
这是Ubuntu吗?参见https://bugs.launchpad.net/ubuntu/+source/wget/+bug/585766的解决方案。
此外,除了设置.wgetrc环境变量之外,还可能需要在您的http_proxy中设置'proxy = on‘。我认为这是在http://www.gnu.org/software/wget/manual/wget.html#Proxies含糊不清的建议。
发布于 2010-08-19 12:33:15
另外,尝试设置$HTTP_PROXY。
https://serverfault.com/questions/158338
复制相似问题