记录如何解决127.0.0.1无法访问github.io

477 阅读1分钟

问题:在使用steam++加速访问github过程中,为了创建个人博客,新建了一个仓库命名为xxx.github.io,但是点开仓库后跳转到github 404页面,site not found。

点开hosts文件,(对于windows系统一般位于C:\Windows\System32\drivers\etc),发现steam++脚本为访问github等相关网页使用了127.0.0.1,包括github.io。

解决方法:打开 ip.tool.chinaz.com/github.io 网页,查找github.io域名的ip。

图片.png

把获取的ip在hosts文件中添加对应关系。例如: 185.199.110.153 github.io 注意:该静态配对关系需要写在local host name …… 上方

图片.png