itskingname
V2EX  ›  问与答

良心云如何正确访问 github

  •  
  •   itskingname · Nov 6, 2019 · 3147 views
    This topic created in 2470 days ago, the information mentioned may be changed or developed.

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

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

    4 replies    2019-11-06 14:39:50 +08:00
    yu7er
        1
    yu7er  
       Nov 6, 2019
    我的腾讯云改 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  
       Nov 6, 2019
    默认的源应该是内网吧?
    先修改 /etc/apt/sources.list
    再需改 DNS 就可以了
    rayhy
        3
    rayhy  
       Nov 6, 2019
    记得 github 禁 ping 吧。。
    rayhy
        4
    rayhy  
       Nov 6, 2019
    @rayhy 不过最近访问 github 是真的慢。我 clone repo 速度稳定 4KB/s
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5837 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 02:14 · PVG 10:14 · LAX 19:14 · JFK 22:14
    ♥ Do have faith in what you're doing.