赞
踩
http 代理
export http_proxy="http://127.0.0.1:1080"
export https_proxy="http://127.0.0.1:1080"
sock5 代理
export http_proxy="socks5://127.0.0.1:1080/"
export https_proxy="socks5://127.0.0.1:1080/"
设置为全部代理
export all_proxy="socks5://127.0.0.1:1080/"
取消代理
unset http_proxy
unset https_proxy
unset ALL_PROXY
测试代理是否成功
curl -vv https://www.github.com
#1.设置代理
set http_proxy=
set http_proxy=http://proxy.domain.com:port
set https_proxy=https://192.168.1.1:8080
#如果有用户名和密码
set http_proxy_user=jake
set http_proxy_pass=abcd
#2.取消代理设置
set http_proxy=
set https_proxy=
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。