为curl,wget,pip设置socks5代理
sudo vim ~/.bashrc
export http_proxy='socks5://127.0.0.1:1080'
export https_proxy='socks5://127.0.0.1:1080'
export ftp_proxy='socks5://127.0.0.1:1080'
export no_proxy='localhost,127.0.0.1'
执行:
source ~/.bashrc
go代理
export GO111MODULE=on
export GOPROXY=
git代理
#设置代理
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
#删除代理
git config --global --unset http.proxy
git config --global --unset https.proxy
发表评论