如何在Linux终端上实现代理,高速上传下载github文件
遇到的网络问题:
国内网络环境下如果需要在Linux终端上下载github上面的文件,是不能访问的:
git clone https://github.com/excalidraw/excalidraw.git
解决方案
git clone https://git.metauniverse-cn.com/https://github.com/excalidraw/excalidraw.git
总结
通过在URL前部加入代理中转网站网址https://git.metauniverse-cn.com/
实现终端代理,这种方法在青龙面板 拉库指令中同样适用
PC端设置终端代理
参照链接:(https://www.cfmem.com/2021/08/github.html)
[dplayer url="https://ntnas.top:82/typecho/usr/uploads/2022/05/1.mp4" pic="https://ntnas.top:82/typecho/usr/uploads/2022/05/4089661835.png" danmu="false" autoplay="false" /]
测试代理
curl -v google.com
或者
curl cip.cc
当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »