如何解决Ubuntu无法访问github
Ubuntu无法访问github的解决方案
1、查询github.com和github.global.ssl.fastly.net的ip地址
https://ipaddress.com/website/github.com
https://ipaddress.com/website/github.global.ssl.fastly.net
2、修改hosts下的配置
sudo gedit /etc/hosts
添加如下两句:
140.82.113.3 github.com
199.232.69.194 github.global.ssl.fastly.net
3、重启network
sudo /etc/init.d/networking restart
1、查询github.com和github.global.ssl.fastly.net的ip地址
https://ipaddress.com/website/github.com
https://ipaddress.com/website/github.global.ssl.fastly.net
2、修改hosts下的配置
sudo gedit /etc/hosts
添加如下两句:
140.82.113.3 github.com
199.232.69.194 github.global.ssl.fastly.net
3、重启network
sudo /etc/init.d/networking restart