目录

系统设置代理

1
2
3
4
5
export http_proxy=http://192.168.123.3:7890
export https_proxy=http://192.168.123.3:7890
# 取消
export http_proxy=
export https_proxy=
1
2
3
4
5
git config --global http.proxy http://192.168.123.3:7890
git config --global https.proxy http://192.168.123.3:7890
# 取消
git config --global --unset http.proxy
git config --global --unset https.proxy
1
2
3
4
5
$env:HTTP_PROXY="http://127.0.0.1:7890"
$env:HTTPS_PROXY="http://127.0.0.1:7890"
#取消
$env:HTTP_PROXY=
$env:HTTPS_PROXY=
1
2
setenv http_proxy http://127.0.0.1:7890
setenv https_proxy http://127.0.0.1:7890