0%

PowerShell设置全局代理

在 PowerShell 里输入环境变量

格式

1
2
$env:HTTP_PROXY="http://域名:端口"
$env:HTTPS_PROXY="http://域名:端口"

例如

1
2
$env:HTTP_PROXY="http://127.0.0.1:10809"
$env:HTTPS_PROXY="http://127.0.0.1:10809"

参考链接

https://blog.csdn.net/weixin_44120025/article/details/110950434