http(s)代理
export http_proxy="http://localhost:port"
export https_proxy="http://localhost:port"
socks5
export http_proxy="socks5://127.0.0.1:1080"
export https_proxy="socks5://127.0.0.1:1080"
ALL_PROXY
export ALL_PROXY=socks5://127.0.0.1:1080
参考: https://zhuanlan.zhihu.com/p/46973701