Github無法顯示圖片問題解決方案

本來想利用github搭個測試分發平臺,結果照片不顯示,文件拿不到!

記得前段時間時間還可以後來就不行了,尷尬癌犯了,非得把它搞出來,一查還真有解決方案:

1 Mac終端

sudo vi /etc/hosts

2 會提示你輸入開機密碼   ->輸入密碼

 

3    shift + i 進入編輯模式 並將下面的內容拷貝進去 然後ESC  再  :wq (這步操作同 pods)

# GitHub Start
140.82.114.4 github.com
140.82.114.4 gist.github.com
185.199.108.153 assets-cdn.github.com
151.101.64.133 raw.githubusercontent.com
151.101.108.133 gist.githubusercontent.com
151.101.108.133 cloud.githubusercontent.com
151.101.108.133 camo.githubusercontent.com
151.101.108.133 avatars0.githubusercontent.com
151.101.108.133 avatars1.githubusercontent.com
151.101.108.133 avatars2.githubusercontent.com
151.101.108.133 avatars3.githubusercontent.com
151.101.108.133 avatars4.githubusercontent.com
151.101.108.133 avatars5.githubusercontent.com
151.101.108.133 avatars6.githubusercontent.com
151.101.108.133 avatars7.githubusercontent.com
151.101.108.133 avatars8.githubusercontent.com 
# GitHub End

4 再去打開github 圖片加載出來了😄

5 👏

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章