终端可以 pingGitHub,但是无法安装 oh-my-zsh 问题

2020-02-26 14:45:24 +08:00
 christin

系统开全局代理 /智能代理,网页可以进入,也可以 ping 通

pingGitHub 效果如下 PING github.com (192.30.253.113): 56 data bytes 64 bytes from 192.30.253.113: icmp_seq=0 ttl=50 time=274.647 ms 64 bytes from 192.30.253.113: icmp_seq=1 ttl=50 time=269.915 ms 64 bytes from 192.30.253.113: icmp_seq=2 ttl=50 time=297.929 ms

但是安装 oh-my-zsh 就超时

Cloning Oh My Zsh... Cloning into '/Users/Mac2015/.oh-my-zsh'... fatal: unable to access 'https://github.com/ohmyzsh/ohmyzsh.git/': Failed to connect to 172.17.18.80 port 8080: Operation timed out Error: git clone of oh-my-zsh repo failed

在网上找的在 hosts 中添加 ··· 199.232.4.133 raw.githubusercontent.com 192.30.253.113 github.com ···

依旧无效

  1. 用 wget 安装显示安装成功界面,但是没有.oh-my-zsh 文件夹
  2. 用 curl 安装就超时

有没有大佬遇到同样的问题 麻烦帮助一下

5189 次点击
所在节点    问与答
9 条回复
winterbells
2020-02-26 15:15:49 +08:00
Failed to connect to 172.17.18.80 port 8080
8080 你代理端口?通吗? http 代理?
lights
2020-02-26 15:41:37 +08:00
lights
2020-02-26 15:42:23 +08:00
你的问题是 cloning into xxx 速度慢,其实就是 clone GitHub 慢的问题,我那篇博文就是将如何解决这个问题
loading
2020-02-26 15:43:50 +08:00
export HTTPS_PROXY=socks5://127.0.0.1:1080
Yourshell
2020-02-26 15:47:41 +08:00
Tomotoes
2020-02-26 15:49:24 +08:00
通过 ssh 协议 clone 下
carpediem777
2020-02-26 16:16:08 +08:00
把代理加到终端中
tankren
2020-02-26 16:45:39 +08:00
proxychains
kios
2020-02-27 11:03:05 +08:00
Git 弄下代理就行 指定一下 走本地代理。其实最好的方法还是 家庭内部网络统一走软路由,这样子你全家的设备都可以分流走代理

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/647713

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX