macos--终端设置代理
2022-07-31 本文已影响0人
w_dll
参考文章
https://liushiming.cn/article/mac-terminal-proxy-though-shadowsocks-pass-gfw.html
https://www.hangge.com/blog/cache/detail_3138.html
命令行
export http_proxy=http://127.0.0.1:1087;export https_
proxy=http://127.0.0.1:1087;
vi ~/.zshrc
alias proxy='export all_proxy=[socks5://127.0.0.1:1080](socks5://127.0.0.1:1080)'
alias unproxy='unset all_proxy'
source ~/.zshrc
开启
proxy
关闭
unproxy