- 第一步,
找到hosts文件,一般在
C:\Windows\System32\drivers\etc
利用记事本或者Notepad打开
- 第二步,
分别在https://www.ipaddress.com/
下输入:
github.com
github.global.ssl.fastly.net
得到下图:
- 第三步,
- 将上图中的ip地址分别拷贝到刚才打开的hosts文件中。
- 第四步,
- 打开cmd,输入
ipconfig /flushdns
。
C:\Windows\System32\drivers\etc
利用记事本或者Notepad打开
https://www.ipaddress.com/
下输入:github.com
github.global.ssl.fastly.net
得到下图:
ipconfig /flushdns
。