重裝系統(tǒng)之后發(fā)現(xiàn)Github無(wú)法加載或不顯示圖片职祷,影響日常搬磚之前看圖的習(xí)慣跛蛋。查找資料并總結(jié)解決步驟如下:
windows系統(tǒng)下展懈,打開路徑C:\Windows\System32\drivers\etc下的hosts文件橄浓,我用的Notepad++吠谢,然后把下面代碼填進(jìn)去
# GitHub Start
140.82.113.3? ? ? github.com
140.82.114.20? ? gist.github.com
151.101.184.133? ? assets-cdn.github.com
151.101.184.133? ? raw.githubusercontent.com
151.101.184.133? ? gist.githubusercontent.com
151.101.184.133? ? cloud.githubusercontent.com
151.101.184.133? ? camo.githubusercontent.com
151.101.184.133? ? avatars0.githubusercontent.com
199.232.68.133? ? avatars0.githubusercontent.com
199.232.28.133? ? avatars1.githubusercontent.com
151.101.184.133? ? avatars1.githubusercontent.com
151.101.184.133? ? avatars2.githubusercontent.com
199.232.28.133? ? avatars2.githubusercontent.com
151.101.184.133? ? avatars3.githubusercontent.com
199.232.68.133? ? avatars3.githubusercontent.com
151.101.184.133? ? avatars4.githubusercontent.com
199.232.68.133? ? avatars4.githubusercontent.com
151.101.184.133? ? avatars5.githubusercontent.com
199.232.68.133? ? avatars5.githubusercontent.com
151.101.184.133? ? avatars6.githubusercontent.com
199.232.68.133? ? avatars6.githubusercontent.com
151.101.184.133? ? avatars7.githubusercontent.com
199.232.68.133? ? avatars7.githubusercontent.com
151.101.184.133? ? avatars8.githubusercontent.com
199.232.68.133? ? avatars8.githubusercontent.com
# GitHub End
還可以使用ipconfig/flush對(duì)本地DNS緩存進(jìn)行一次刷新,如果遇到網(wǎng)絡(luò)異常唯袄,可能是DNS緩存的問題弯屈,刷新一下,步驟恋拷。
windows開始→運(yùn)行→輸入:CMD 按回車鍵资厉,打開命令提示符窗口。
再輸入: ipconfig /flushdns 回車,執(zhí)行命令梅掠,可以重建本地DNS緩存酌住。
ipconfig /displaydns # 顯示dns緩存?
ipconfig /flushdns # 刷新DNS記錄?
ipconfig /renew # 重請(qǐng)從DHCP服務(wù)器獲得IP