1:第一步,
打開域名決議網址:https://www.ipaddress.com/
打開之后,分別搜索以下3個域名:
github.com
assets-cdn.github.com
github.global.ssl.fastly.net
獲取相對應的ip地址,
2:配置靜態域名映射
以windows環境為例,在C:\Windows\System32\drivers\etc\hosts檔案里加上剛查到的域名映射
linux環境:/ect/hosts
配置完成后退出,重繪DNS快取,
ipconfig /flushdns
3:配置完成
4:找不到hosts檔案的解決辦法
win+R打開cmd,粘貼以下代碼后回車,會復制host檔案并以記事本打開host檔案
for /f %P in ('dir %windir%\WinSxS\hosts /b /s') do copy %P %windir%\System32\drivers\etc & echo %P & Notepad %P
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/282638.html
標籤:其他
