本文最后更新于 2352 天前,其中的信息可能已经有所发展或是发生改变。
linux
export http_proxy=http://192.168.123.3:7890
export https_proxy=http://192.168.123.3:7890
# 取消
export http_proxy=
export https_proxy=
git
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
powershell
$env:HTTP_PROXY="http://127.0.0.1:7890"
$env:HTTPS_PROXY="http://127.0.0.1:7890"
#取消
$env:HTTP_PROXY=
$env:HTTPS_PROXY=