1.http代理
export http_proxy="http://localhost:port"
export https_proxy="http://localhost:port"
2.socks5代理
export http_proxy="socks5://127.0.0.1:1080"
export https_proxy="socks5://127.0.0.1:1080"
export ALL_PROXY=socks5://127.0.0.1:1080
alias setproxy="export ALL_PROXY=socks5://127.0.0.1:1080"
alias unsetproxy="unset ALL_PROXY"
Linux终端流量走socks5代理
最新推荐文章于 2024-04-28 15:19:31 发布