使用Windows cmd
设置代理地址
set http_proxy=http://127.0.0.1:1080
set https_proxy=http://127.0.0.1:1080
测试
curl -vv google.com
撤销
set http_proxy=
set https_proxy=
使用git bash
设置代理地址
export http_proxy=http://localhost:8080
export https_proxy=http://localhost:8080
测试
curl -vv google.com
撤销
export http_proxy=
export https_proxy=