V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
christin
V2EX  ›  问与答

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

  •  
  •   christin · 2020-02-26 14:45:24 +08:00 · 5170 次点击
    这是一个创建于 1492 天前的主题,其中的信息可能已经有所发展或是发生改变。

    系统开全局代理 /智能代理,网页可以进入,也可以 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 安装就超时

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

    9 条回复    2020-02-27 11:03:05 +08:00
    winterbells
        1
    winterbells  
       2020-02-26 15:15:49 +08:00
    Failed to connect to 172.17.18.80 port 8080
    8080 你代理端口?通吗? http 代理?
    lights
        2
    lights  
       2020-02-26 15:41:37 +08:00
    lights
        3
    lights  
       2020-02-26 15:42:23 +08:00
    你的问题是 cloning into xxx 速度慢,其实就是 clone GitHub 慢的问题,我那篇博文就是将如何解决这个问题
    loading
        4
    loading  
       2020-02-26 15:43:50 +08:00
    export HTTPS_PROXY=socks5://127.0.0.1:1080
    Yourshell
        5
    Yourshell  
       2020-02-26 15:47:41 +08:00
    Tomotoes
        6
    Tomotoes  
       2020-02-26 15:49:24 +08:00
    通过 ssh 协议 clone 下
    carpediem777
        7
    carpediem777  
       2020-02-26 16:16:08 +08:00
    把代理加到终端中
    tankren
        8
    tankren  
       2020-02-26 16:45:39 +08:00
    proxychains
    kios
        9
    kios  
       2020-02-27 11:03:05 +08:00
    Git 弄下代理就行 指定一下 走本地代理。其实最好的方法还是 家庭内部网络统一走软路由,这样子你全家的设备都可以分流走代理
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3157 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 12:33 · PVG 20:33 · LAX 05:33 · JFK 08:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.