由于我在使用百度搜索的答案时遇到一点小问题,这里记录下来。
- win+x+a #打开管理员模式
- 命令行输入‘notepad’,打开记事本
- 记事本中打开系统hosts文件,目录如下
C:\Windows\System32\drivers\etc
- 在文档最下方添加github ip
- 查看GitHub的ip地址
进入网址https://github.com.ipaddress.com - 确定域名ip
进入网址https://fastly.net.ipaddress.com/github.global.ssl.fastly.net - 确定静态资源ip
进入网址https://github.com.ipaddress.com/assets-cdn.github.com - 格式如下
- 注意,不同机器的IP可能各不相同
注意,不同机器的IP可能各不相同
注意,不同机器的IP可能各不相同
# localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost 140.82.113.4 github.com 199.232.69.194 github.global.ssl.fastly.net 185.199.108.153 assets-cdn.github.com 185.199.109.153 assets-cdn.github.com 185.199.110.153 assets-cdn.github.com 185.199.111.153 assets-cdn.github.com
- ctrl+s保存退出
- 查看GitHub的ip地址
- 现在试一下吧
2021.10.18.win10系统修改成功