vcpkg install安装c++库时,如果开了代理(翻墙)也出现报端口问题
就用下面的命令,ip和端口改成自己代理的端口
set http_proxy=http://192.168.1.1:8080
但是这样设置后会是全局代理,导致自己的git设置的端口连接不到github,出现冲突从而拒绝连接,就需要在git bash中取消代理:
首先,查一下全局代理:
git config --global http.proxy
如果有代理,就取消。
git config --global --unset http.proxy
git的设置
GIt设置代理,才能正常访问github 等网站
设置如下(可复制):
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
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