找映射
- 拜访https://www.ipaddress.com
- 找到或者查问github.global.ssl.fastly.net和github.com,查问ip地址
- 上面是我的
140.82.112.3 github.com
199.232.69.194 github.global.ssl.fastly.net
批改hosts文件
windows零碎的hosts文件的地位如下:C:\Windows\System32\drivers\etc\hosts
mac/linux零碎的hosts文件的地位如下:/etc/hosts
- windows键+X键,抉择Windows Powershell(管理员)
- 在powershell 界面输出notepad,按回车
- 左上角关上,选到hosts文件目录,右下角改为所有文件
- 进行批改,增加两个映射地址,保留
测试
1.关上命令提示符输出ping github.com,若下图则胜利,申请超时则失败