设置 http_proxy 不适用于 windows

set http_proxy not working on windows

我正在使用 Windows 7. 我正在尝试使用以下方法安装 jekyll:gem install jekyll

我收到错误消息:无法从...下载数据。连接超时。

所以我尝试通过 :

设置 http_proxy 和 https_proxy
set http_proxy = http://proxy:port
set https_proxy = https://proxy:port

我仍然遇到同样的错误。我认为上述命令以某种方式不起作用。 所以我的问题是如何检查 http_proxy 是否设置为我设置的值?如果上述命令有效,那么如何解决问题。 当我在浏览器上使用它时,我的互联网连接很好。

我提到了 this and this link。

首先删除 = .
之间的空格 然后输入不带参数的set来检查你的环境变量