Windows Terminal下设置代理

先假设ip为127.0.0.1,而端口为1234,那么

一般的,在cmd的时代,可以使用:

set http_proxy=http://127.0.0.1:1234 & set https_proxy=http://127.0.0.1:1234

而到了以Powershell为底的时代,例如在Windows Termianl中,可以使用:

$Env:http_proxy="http://127.0.0.1:1234";$Env:https_proxy="http://127.0.0.1:1234"

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注