解決GitHub打不開的問題
github的ip和cdn老是有變化,導致國內的用戶無法登陸。記錄一下怎么解決
一、確定ip
進入網址https://github.com.ipaddress.com
查看GitHub的ip地址。

140.82.114.4 github.com
二、確定域名ip
進入網址https://fastly.net.ipaddress.com/github.global.ssl.fastly.net

199.232.69.194 github.global.ssl.fastly.net
三、確定靜態資源ip
進入網址https://github.com.ipaddress.com/assets-cdn.github.com

185.199.108.153 assets-cdn.github.com
185.199.110.153 assets-cdn.github.com
185.199.111.153 assets-cdn.github.com
四、修改hosts文件
Windows系統:打開 C:\Windows\System32\drivers\etc 找到hosts文件

右鍵打開,把之前三步的ip粘貼在最下方 保存后,重新打開GitHub就可以了。 一般情況下就可以直接訪問了
