解决 Github 打不开或打开很慢的问题
发表于:2022-01-30 14:23:38浏览:2197次
方法一#
一、确定 github 网站的 ip#
打开网址:http://github.com.ipaddress.com/
192.30.253.112 github.com
192.30.253.113 github.com
二、确定域名ip#
打开网址:http://github.global.ssl.fastly.net.ipaddress.com/
或者是
151.101.185.194 github.global.ssl.fastly.net
151.101.13.194 github.global.ssl.fastly.net
三、确定静态资源ip#
打开网址:http://assets-cdn.github.com.ipaddress.com/
151.101.12.133 assets-cdn.github.com
151.101.184.133 assets-cdn.github.com
四、修改hosts文件#
Windows 系统的 host 文件位置 C:\Windows\System32\drivers\etc
192.30.253.112 Build software better, together 192.30.253.113 Build software better, together 151.101.185.194 github.global.ssl.fastly.net 151.101.13.194 github.global.ssl.fastly.net 151.101.12.133 assets-cdn.github.com 151.101.184.133 assets-cdn.github.com
修改后命令行运行 ipconfig /flushdns
附:https://www.ipaddress.com/ 此网站可以查询网址的 IP。
方法二#
查询 github.com 的 DNS 地址
百度搜索“查询网址DNS”,或者可以直接输入网址 https://tool.chinaz.com/dns/
检测 https://github.com 得到响应 IP,添加 IP 到 hosts 文件中。
13.229.188.59 github.com 203.208.39.99 github.com 140.82.114.3 github.com
方法三#
使用工具,工具地址:https://github.com/luozheao/setHost
需要安装 nodejs 环境。
栏目分类全部>
推荐文章
- PHP中 empty() 和 isset() 的区别
- 浅谈linux中/dev/vda1文件满了解决方法
- 数组合并的方式 + 和 array_merage
- JavaScript之干货(一)---走进JS世界
- 手把手教你在linux下搭建mysql多主多从
- Linux下对nginx日志进行统计分析的常用命令
- SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length
- php 多维数组指定某个值作为键
- 解决 Github 打不开或打开很慢的问题
- ThinkPHP数据查询去重distinct和group by方法
