Linux下各项代理设置 发表于 2019-12-31 更新于 2020-06-07 分类于 coding 阅读次数: Valine: GIT设置 12345# 只对github生效git config --global http.https://github.com.proxy socks5://127.0.0.1:1080# 对所有生效git config --global http.proxy http://127.0.0.1:8118git config --global https.proxy http://127.0.0.1:8118 取消 12345# 只对github生效git config --global --unset http.https://github.com.proxy# 对所有生效git config --global --unset http.proxygit config --global --unset https.proxy WGET12345# cat ~/.wgetrcuse_proxy=yeshttp_proxy=http://127.0.0.1:8118https_proxy=http://127.0.0.1:8118no_proxy=".local" 系统设置 123export http_proxy=http://127.0.0.1:8118export https_proxy=http://127.0.0.1:8118export no_proxy=".local" 取消 123unset http_proxyunset https_proxyunset no_proxy