PowerShell命令行设置代理

$env:all_proxy="socks5://127.0.0.1:1080"
或者

1
2
$env:http_proxy="http://127.0.0.1:8118"
$env:https_proxy="http://127.0.0.1:8118"