设置socks5代理
内容 在类unix系统中设置socks5代理: 1 2 export http_proxy=socks5://127.0.0.1:1080 export https_proxy=socks5://127.0.0.1:1080 上面脚本可以在终端执行,只对本次终端有效。如果想每次打开终端都有效可以把上面脚本加到文件 ~/.bash_profile 在windows下设置socks5代理 1 2 set http_proxy=http://127.0.0.1:1080 set https_proxy=http://127.0.0.1:1080 给git设置socks5代理 1 2 git config –global http.proxy ‘socks5://127.0.0.1:1080’ git……