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