GitHub 无法访问解决方案 |
您所在的位置:网站首页 › github网站无法访问 › GitHub 无法访问解决方案 |
第一步: 查看 GitHub 的 IP 地址 进入网址 https://github.com.ipaddress.com ![]() 进入网址 https://fastly.net.ipaddress.com/github.global.ssl.fastly.net ![]() 进入网址 https://github.com.ipaddress.com/assets-cdn.github.com ![]() 将上面三步所得的 IP 写进 hosts 文件里 macOS hosts 文件路径: /etc/hosts Windows hosts 文件路径: C:\Windows\System32\drivers\etc\hosts 1234567# GitHub140.82.114.4 github.com199.232.69.194 github.global.ssl.fastly.net185.199.108.153 assets-cdn.github.com185.199.109.153 assets-cdn.github.com185.199.110.153 assets-cdn.github.com185.199.111.153 assets-cdn.github.com 注意事项 这些 IP 过一段时间会变动,所以网上很多教程都是直接复制第四步,却没有效果,这时候一定记得要查一下 IP 是否一样。 如果在浏览器开着 GitHub (无法访问状态)的时候修改了 hosts 文件需要重启浏览器。 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |