Github圖片不可見問題修復(fù)

github.jpg

最近訪問github時(shí),發(fā)現(xiàn)圖片不可見,另外gist無(wú)法使用,而其他功能使用都很正常,為此煩惱了一陣,后來(lái)網(wǎng)上搜索發(fā)現(xiàn),修改host可以解決該問題:

# GitHub Start
192.30.253.112 github.com
192.30.253.119 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
151.101.184.133 avatars1.githubusercontent.com
151.101.184.133 avatars2.githubusercontent.com
151.101.184.133 avatars3.githubusercontent.com
151.101.184.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.184.133 avatars8.githubusercontent.com

介于不少朋友曾今反饋過(guò)不知道host如何修改,這里介紹下:

windows下:

C:\Windows\System32\drivers\etc 打開 hosts 后加入上述內(nèi)容,編輯保存即可(會(huì)提示管理員權(quán)限打開,確認(rèn)即可)

mac下:
  1. 打開你的文件管理器也就是Finder ,Hosts在這個(gè)里面
  2. 接下來(lái)請(qǐng)按快捷鍵組合 Shift+Command+G 三個(gè)組合按鍵查找文件,并輸入 Hosts 文件的所在路徑:/etc/hosts
  3. 在打開的文件夾中找到「Hosts」文件夾
  4. 復(fù)制這個(gè)「hosts」文件到桌面上,鼠標(biāo)右鍵點(diǎn)擊/右擊它,選擇「打開方式」—「文本編輯」,打開這個(gè)「hosts」文件,然后將你要修改的內(nèi)容直接在里面修改就好了
  5. 將你修改好的 hosts 文件在復(fù)制回 Hosts 文件的所在(文件夾下)路徑:/etc/hosts 之下替換原始的 hosts 文件就好了,這樣你 Mac 系統(tǒng)下的 hosts 文件就被成功修改了

個(gè)人博客: [IT老五]
微信公眾號(hào):【IT老五(it-lao5)】,一起源創(chuàng),一起學(xué)習(xí)!

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容