win cmd 设置代理


windows:
HTTP(S)代理服务器:127.0.0.1:5783
SOCKS代理服务器:127.0.0.1:5789
  1. set http_proxy=http://127.0.0.1:1189
  2. set https_proxy=http://127.0.0.1:1189
SOCKS5 代理设置:
1
2
set http_proxy=socks5://127.0.0.1:1080
set https_proxy=socks5://127.0.0.1:1080
git代理
git config --global http.proxy http://127.0.0.1:8118
git config --global https.proxy http://127.0.0.1:8118
SOCKS5 代理设置
git config --global http.proxy socks5://127.0.0.1:1080
git config --global https.proxy socks5://127.0.0.1:1080
取消
git config --global --unset http.proxy
git config --global --unset https.proxy
Socks代理比其他应用层代理要快得多。它通常绑定在代理服务器的1080端口上。
SOCK4只支持TCP协议,SOCK5支持TCP和UDP协议
Http代理其端口一般是80


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM