# 当前 powershell shell 的代理
$env:HTTP_PROXY="http://127.0.0.1:1080"
 当前 cmd shell 的代理
set http_proxy=http://127.0.0.1:1080
set https_proxy=http://127.0.0.1:1080

set http_proxy=http://127.0.0.1:1085
set https_proxy=http://127.0.0.1:1085


export http_proxy=http://127.0.0.1:1080
export https_proxy=http://127.0.0.1:1080

export http_proxy=http://127.0.0.1:1085
export https_proxy=http://127.0.0.1:1085

一个变通的方法,设置 cmd 持久代理
https://zhuanlan.zhihu.com/p/478606447

参考
https://www.cnblogs.com/xch-jiang/p/14324636.html

更多推荐