1、更改hosts文件,地址:C:\Windows\System32\Drivers\etc
不能直接修改,將其拷貝到桌面,進行修改後,再複製到文件目錄下(直接替換)
2、在hosts文件中添加:
#github
192.30.253.112 github.com
151.101.113.194 github.global.ssl.fastly.net
前面的ip通過下面兩個網址查出自己的
http://github.com.ipaddress.com/
http://github.global.ssl.fastly.net.ipaddress.com/
3、如果上述步驟還不可以,可以刷新一下緩存:
打開cmd輸入ipconfig /flushdns刷新緩存