shell里配置代理

2021-05-28 02:50:39

 

设置所有的代理走socks5

export ALL_PROXY="socks5://127.0.0.1:1080"
取消代理
unset ALL_PROXY
 

Windows PowerShell - CMD 设置HTTPHTTPSsocks5代理

powershell

PowerShell - CMD 设置HTTPHTTPS代理

$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"

cmd

set http_proxy=http://127.0.0.1:1080

set https_proxy=http://127.0.0.1:1080