Mac os Terminal 使用代理
配置
curl https://ip.cn
{"ip": "x.x.x.x", "country": "xx省xx市", "city": "联通"}
export http_proxy=socks5://127.0.0.1:1086
export https_proxy=$http_proxy
# or
export all_proxy=socks5://127.0.0.1:1086
验证
curl https://ip.cn
{"ip": "x.x.x.x", "country": "美国", "city": "Psychz"}
注:export
仅对当前shell及其子进程生效