window上命令行走代理

打开cmd命令行界面:

set http_proxy=http://127.0.0.1:8890
set https_proxy=http://127.0.0.1:8890

测试:

curl www.google.com

关闭本cmd窗口代理就失效了