獲取github的IP地址
訪問:https://www.ipaddress.com/ 網址 依次獲取以下三個網址的IP
github.com
github.global.ssl.fastly.net
codeload.github.com
這是我獲取的IP
192.30.253.113 github.com
151.101.25.194 github.global.ssl.fastly.net
192.30.253.121 codeload.github.com
1
2
3
修改系統hosts
添加內容
192.30.253.113 github.com
151.101.25.194 github.global.ssl.fastly.net
192.30.253.121 codeload.github.com
1
2
3
windows系統
hosts文件路徑:C:\Windows\System32\drivers\etc\hosts ,
添加上面查詢到的IP到hosts文件中(此時可能需要管理員權限,可以將hosts復制到桌面,修改好了再復制回去覆蓋原先的)
結果:
刷新DNS
ipconfig /flushdns
1
恭喜完成!!!
linux系統
打開hosts文件並修改
sudo vim /etc/hosts
1
插入ip映射保存退出
結果:
2.重啟網絡服務
sudo /etc/init.d/networking restart
1
恭喜完成!!!
附上一張效果圖
(內網被限速在800kb/s,沒有辦法!!)
---------------------
作者:iRich_全棧
來源:CSDN
原文:https://blog.csdn.net/weixin_37910453/article/details/86655613
版權聲明:本文為博主原創文章,轉載請附上博文鏈接!