本地 git 设置了代理,git 仓库克隆速度还是几十 KB/s。通过 Xshell 连接主机,在上面克隆代码几 MB/s,然而通过自带的 xftp 想把代码传送到本地还是几 KB/s,求解决方案😭
|
akiraMay 19, 2019
1
瓶颈点是你的服务器到本地
要么换服务器 要么换本地宽带网络 |
|
linhuaMay 19, 2019
2
bbr
|
|
3
@akira 用的是日本的主机
|
|
4
@linhua https://github.com/getlantern/lantern/pull/8339 按照这个配的,bbr 应该是已经安装啦
|
|
sxiaojianMay 19, 2019 via iPhone
5
服务器安装 v ! p。n 就可以啊
|
|
hzwjzMay 19, 2019
6
proxychains 谁用谁知道
|
|
limuyan44May 19, 2019 via Android
7
改 hosts 还是蛮快的也很简单搜一下可以用的 ip 就行了
|
|
gitopenMay 19, 2019
8
|
|
9
proxychains4
|
|
ActraceMay 19, 2019
10
试一下微林的 vxfly
|
|
11
@akira 换了一个美国服务器可以下载速度过 200KB 啦:-D
|
|
itechifyMay 19, 2019 via Android
12
搭建了梯子,墙外挺流畅的,就是 github 死活下载几 K/s,后面改 hosts,基本 2m/s ~,搜索下 github clone 慢解决办法,按照改试一下吧~
|
|
edsion996May 19, 2019
13
VPS 上传文件到百度云、google drive、腾讯云等等,再本地直连去下载。
本质就是你和 vps 之间的连接比较慢,找一个和 vps、和你自己连接都快的路径。 |
|
neighbadsMay 19, 2019
14
@oneisall8955 #12 都是 github.global.ssl.fastly.net 这个地址的 host ,看连接下载时候 是 ec2-xxx.compute.amazonaws.com 的地址。。。
|
|
liangziMay 19, 2019
15
服务器拉源码之后打包 curl --upload-file https://transfer.sh/source.tar.gz 然后本机再去网页下载 这网站速度可以
|
|
16
export ALL_PROXY=socks5://127.0.0.1:1080
|
|
runtu2019May 19, 2019
17
怎么感觉是带宽问题呢.
服务器下行带宽不设限.上行带宽设限了 你从本地 download 服务器就是占用服务器上行带宽.你 vps 多少 m 带宽的 用 haproxy 做映射 git 网站 ip,客户端 hosts 指向到 vps 试试 |
|
NaveeMay 19, 2019
18
1. vps 弄个代理
2. `git config --global http.proxy 代理地址` `git config --global https.proxy 代理地址` |
|
CEBBCATMay 19, 2019
19
显然是代理不行。另外你说的那个主机你猜猜几个人能明白是在哪里的什么主机?
|
|
mytryMay 19, 2019
20
突然想到,要是做一个加速 git clone 的在线网站,应该有不少人用吧~
|
|
palfortimeMay 19, 2019 via Android
21
服务器开 bbr,日常 proxychains 拉 GitHub,maven,crate
|
|
22
@Navee 换了 v2ray,速度终于能达到 MB/s 了-_-
|
|
msg7086May 20, 2019 via Android
23
克隆完把 .git 打包下载回来解压就行了呗。
|
|
albertofwbMay 20, 2019
24
|
|
xy2401May 20, 2019
25
开源中国 现在 不止可以导入 github repo。还可以一键同步。所以我用阿里云 code(临时用 快点
|
|
huhujinMay 20, 2019
26
proxychains4
|
|
dnLMay 20, 2019
27
用 gitee
|
|
hello100May 20, 2019
28
`git config --global http.proxy 代理地址`
`git config --global https.proxy 代理地址` 这种方法是不会起作用的,因为很多 repo 用的是 SSL 的地址,SSL 的地址不会使用 http 和 https 的 proxy。 真正的解决方法是使用 SSL 的 proxyCommand 在你的.ssh/config 中加入这么一行: ··· Host github.com Hostname github.com User XXXX IdentityFile /home/XXXX/.ssh/id_rsa ProxyCommand /bin/nc -X5 -x 172.0.0.2:1080 %h %p ··· 最后一行会让 git 使用 172.0.0.2:1080 地址的 socket5 代理。我的 linux 跑在 VM 里,这个地址是我 windows 上的 s-s 的地址。 我这边上海电信可以轻松下载到 10MB/s |
|
29
@hello100 亲测可行,感谢大佬^_^
|
|
wgq2633May 25, 2019
30
服务器端 supervisord 建立了一个 socat 转发到 github.com 的服务:
socat tcp-l:61222,fork,reuseaddr tcp:github.com:22 客户端 ssh/.config: Host my.github.com HostName <服务器域名或者 IP> Port 61222 客户端再克隆的时候,github.com 上面的地址例如: [email protected]:updateing/lede-source.git 克隆的时候在 @前面加上 my 就可以从镜像克隆,不加则是官方地址克隆。 方法跟楼上 hello100 基本雷同 |