良心云如何正确访问 github

2019-11-06 13:55:49 +08:00
 itskingname

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

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

2658 次点击
所在节点    问与答
4 条回复
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
2019-11-06 14:33:58 +08:00
默认的源应该是内网吧?
先修改 /etc/apt/sources.list
再需改 DNS 就可以了
rayhy
2019-11-06 14:37:54 +08:00
记得 github 禁 ping 吧。。
rayhy
2019-11-06 14:39:50 +08:00
@rayhy 不过最近访问 github 是真的慢。我 clone repo 速度稳定 4KB/s

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

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

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

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

© 2021 V2EX