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

良心云如何正确访问 github

  •  
  •   itskingname · 2019-11-06 13:55:49 +08:00 · 2654 次点击
    这是一个创建于 1625 天前的主题,其中的信息可能已经有所发展或是发生改变。

    刚刚买了良心云,发现在上面无法 ping 通 github。修改 hosts 无效。修改 DNS 会导致 apt-get 无法使用。

    请问正确的处理方法是什么?

    4 条回复    2019-11-06 14:39:50 +08:00
    yu7er
        1
    yu7er  
       2019-11-06 14:08:15 +08:00
    我的腾讯云改 hosts 可以 ping 的通
    ```
    #Github
    192.30.253.112 github.com
    192.30.253.118 gist.github.com
    151.101.112.133 assets-cdn.github.com
    151.101.184.133 raw.githubusercontent.com
    151.101.112.133 gist.githubusercontent.com
    151.101.184.133 cloud.githubusercontent.com
    151.101.112.133 camo.githubusercontent.com
    151.101.112.133 avatars0.githubusercontent.com
    151.101.112.133 avatars1.githubusercontent.com
    151.101.184.133 avatars2.githubusercontent.com
    151.101.12.133 avatars3.githubusercontent.com
    151.101.12.133 avatars4.githubusercontent.com
    151.101.184.133 avatars5.githubusercontent.com
    151.101.184.133 avatars6.githubusercontent.com
    151.101.184.133 avatars7.githubusercontent.com
    151.101.12.133 avatars8.githubusercontent.com
    ```
    Vhc
        2
    Vhc  
       2019-11-06 14:33:58 +08:00
    默认的源应该是内网吧?
    先修改 /etc/apt/sources.list
    再需改 DNS 就可以了
    rayhy
        3
    rayhy  
       2019-11-06 14:37:54 +08:00
    记得 github 禁 ping 吧。。
    rayhy
        4
    rayhy  
       2019-11-06 14:39:50 +08:00
    @rayhy 不过最近访问 github 是真的慢。我 clone repo 速度稳定 4KB/s
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1242 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 17:48 · PVG 01:48 · LAX 10:48 · JFK 13:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.