openvino_help

Win10下git下载加速
(一)设置virtual private network 
(1)win10, cmd window, v2ray proxy
set HTTPS_PROXY=127.0.0.1:10809

(2)win10, gitcmd window, v2ray proxy
set HTTPS_PROXY=127.0.0.1:10809

(3)win10, gitbash window, v2ray proxy
export https_proxy=http://127.0.0.1:10809

(二)使用镜像加速
https://github.com
https://hub.fastgit.org
https://github.com.cnpmjs.org

https://github.com/openvinotoolkit/openvino.git

git clone https://github.com/openvinotoolkit/openvino.git
git clone https://hub.fastgit.org/openvinotoolkit/openvino.git
git clone https://github.com.cnpmjs.org/openvinotoolkit/openvino.git


(1)更改.gitmodules文档中子模块的路径
把https://github.com
用https://hub.fastgit.org
或https://github.com.cnpmjs.org替换
(2)执行 git submodule init
.git/config文档中会添加子模块的下载地址,
查看此地址是否是加速镜像的地址,若不是,需要修改,即步骤(3)。
(3)更改.git/config文档中子模块的路径
(4)执行 git submodule update

git submodule update --init --recursive == git submodule init & git submodule update

Ubuntu下git加速

注意端口配置
下面两图中的端口配置,和下面指令对应关系
export http_proxy=http://127.0.0.1:8888
export https_proxy=http://127.0.0.1:8888


curl -I https://www.google.com
不能直接ping https://www.google.com,要用curl

zhenglf@ubuntu:~/Documents/G2O/g2o/build$ export https_proxy=http://127.0.0.1:8888
zhenglf@ubuntu:~/Documents/G2O/g2o/build$ 
zhenglf@ubuntu:~/Documents/G2O/g2o/build$ curl -I https://www.google.com
HTTP/1.1 200 Connection established

HTTP/2 200 
content-type: text/html; charset=ISO-8859-1
p3p: CP="This is not a P3P policy! See g.co/p3phelp for more info."
date: Thu, 06 Jan 2022 15:33:45 GMT
server: gws
x-xss-protection: 0
x-frame-options: SAMEORIGIN
expires: Thu, 06 Jan 2022 15:33:45 GMT
cache-control: private
set-cookie: NID=511=gY0Sjk1_Cf6FX_LPy2lhd5iApDwwsZaZWqSEzgB_Xww0Th6DHbU7txSypPwAR7i_yMWOJxq1Ye2xvscdVusG-3fcFNntEDii-iDxFaa_i-mLBfK-3pB1F80LyKzEKf5kArWOld2jCKHxzhKiJDh0zn6Kau2jxuMuE-0D6RViOIY; expires=Fri, 08-Jul-2022 15:33:45 GMT; path=/; domain=.google.com; HttpOnly
set-cookie: CONSENT=PENDING+250; expires=Sat, 06-Jan-2024 15:33:45 GMT; path=/; domain=.google.com; Secure
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"

zhenglf@ubuntu:~/Documents/G2O/g2o/build$ 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值