查詢IP網(wǎng)址: ?https://ip.chinaz.com/
主頁如下:
分別查詢以下三個網(wǎng)址的IP:
github.com
github.global.ssl.fastly.net
assets-cdn.github.com
修改?hosts 文件:
將 /etc/hosts 復(fù)制到 home 下
sudo cp /etc/hosts ./
gedit hosts
在底下添加:
xxx.xx.xx.x github.com
xxx.xx.xx.x github.global.ssl.fastly.net
xxx.xx.xx.x assets-cdn.github.com
xxx.xx.xx.x assets-cdn.github.com
xxx.xx.xx.x assets-cdn.github.com
xxx.xx.xx.x assets-cdn.github.com
xxx.xx.xx.x 是你在網(wǎng)站查詢到的IP,注意對應(yīng)好后面的網(wǎng)址
最后,再將 hosts 拷貝回 /etc/hosts?文章來源:http://www.zghlxwxcb.cn/news/detail-819145.html
正常關(guān)掉瀏覽器,重啟電腦,OK,解決!文章來源地址http://www.zghlxwxcb.cn/news/detail-819145.html
到了這里,關(guān)于Github 無法正常訪問?一招解決的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!