cmd设置代理

cmd

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

powershell

$env:HTTPS_PROXY="http://127.0.0.1:1080"
$env:HTTP_PROXY="http://127.0.0.1:1080"
$env:all_proxy="socks5://127.0.0.1:1081"

测试

curl https://www.google.com

原文地址:https://www.cnblogs.com/arrayblog/p/14157832.html