Powershell或cmd设置代理
Powershell或cmd设置代理
设置代理
netsh winhttp set proxy 127.0.0.1:10808
取消代理
netsh winhttp reset proxy
查看代理
netsh winhttp show proxy
临时设置代理
$Env:http_proxy="http://127.0.0.1:10809";
$Env:https_proxy="http://127.0.0.1:10809";
还是这句比较好用
$PSDefaultParameterValues = @{ "*:Proxy"="http://127.0.0.1:10809" }
Scoop代理
scoop config proxy 'localhost:8080'
Scoop 移除代理
scoop config rm proxy