刚刚买了良心云,发现在上面无法 ping 通 github。修改 hosts 无效。修改 DNS 会导致 apt-get 无法使用。
请问正确的处理方法是什么?
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 ``` |
2
Vhc 2019-11-06 14:33:58 +08:00
默认的源应该是内网吧?
先修改 /etc/apt/sources.list 再需改 DNS 就可以了 |
3
rayhy 2019-11-06 14:37:54 +08:00
记得 github 禁 ping 吧。。
|