设置CMD走代理模式,只在当前窗口临时有效,不属于系统变量,窗口关闭后就会失效。
http
set http_proxy=http://127.0.0.1:8080
https
set https_proxy=http://127.0.0.1:8080
将端口8080替换成自己配置的代理端口。
测试
不要用ping测试
请用curl,正确时返回网页内容
curl http://www.google.com
curlHtpp.jpg
curl https://www.google.com
curlHttps.jpg