赞
踩
相信计算机专业的同学在学习 linux 时, 一定会被无法获取网络资源而困惑, 本文带你打通 git clone 的速度限制
开启局域网连接
v-two-ray 端口地址:
我们知道的 v-two-ray 的端口, 这里我们要用本地端口, 因为我们是主机的 git
git config --global http.proxy http://127.0.0.1:10809
git config --global https.proxy https://127.0.0.1:10809
git config --global --unset http.proxy
git config --global --unset https.proxy
如果是虚拟机的话, 需要将地址设为网关地址
另外如果是 VMware 虚拟机:
$ ip r
default via 192.168.254.2 dev ens33 proto static
192.168.254.0/24 dev ens33 proto kernel scope link src 192.168.254.130
虚拟机网关为 192.168.254.2
, 但该网关为虚拟网关不接流量, 应使用 192.168.254.1
git config --global http.proxy http://192.168.254.1:10809
git config --global https.proxy https://192.168.254.1:10809
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。