订阅本栏目 RSS您所在的位置: 深山工作室 > 电商 > 正文

解决国内 github.com 打不开的准确方法

2023/1/1 16:03:03 字体: 浏览 3953

http://github.com的地址修正
第一步: 找最快访问http://github.com的地址
找最快访问http://github.com的地址方法很平凡,打开网站 http://tool.chinaz.com/dns/ ,在A类型的查询中输入 github.com,找到最快访问的ip地址,并复制下来.


第二步:修改host文件
电脑的hosts文件在下面这个地址,找到hosts文件
C:\Windows\System32\Drivers\etc

打开hosts文件,可能需要管理员权限。在末尾新建一行,添加如下内容:

140.82.112.26 alive.github.com
140.82.114.25 live.github.com
185.199.108.154 github.githubassets.com
140.82.113.22 central.github.com
185.199.108.133 desktop.githubusercontent.com
185.199.108.153 assets-cdn.github.com
185.199.108.133 camo.githubusercontent.com
185.199.108.133 github.map.fastly.net
199.232.69.194 github.global.ssl.fastly.net
140.82.112.4 gist.github.com
185.199.108.153 github.io
140.82.112.3 github.com
140.82.112.6 api.github.com
185.199.108.133 raw.githubusercontent.com
185.199.108.133 user-images.githubusercontent.com
185.199.108.133 favicons.githubusercontent.com
185.199.108.133 avatars5.githubusercontent.com
185.199.108.133 avatars4.githubusercontent.com
185.199.108.133 avatars3.githubusercontent.com
185.199.108.133 avatars2.githubusercontent.com
185.199.108.133 avatars1.githubusercontent.com
185.199.108.133 avatars0.githubusercontent.com
185.199.108.133 avatars.githubusercontent.com
140.82.113.10 codeload.github.com
52.217.129.177 github-cloud.s3.amazonaws.com
52.216.178.147 github-com.s3.amazonaws.com
52.216.140.12 github-production-release-asset-2e65be.s3.amazonaws.com
52.217.196.241 github-production-user-asset-6210df.s3.amazonaws.com
52.217.128.49 github-production-repository-file-5c1aeb.s3.amazonaws.com
185.199.108.153 githubstatus.com
64.71.168.201 github.community
185.199.108.133 media.githubusercontent.com


保存。或者,也可以访问 http://tool.chinaz.com/dns/ ,在输入框中填写 github.com,然后点击检测按钮,会列出响应ip,出现下面的内容:
广东[电信] 20.205.243.166 [新加坡 微软云] 600
贵州[电信] 20.205.243.166 [新加坡 微软云] 21
安徽[电信] 20.205.243.166 [新加坡 微软云] 900
云南[电信] 20.205.243.166 [新加坡 微软云] 300


在hosts文件结尾输入:
20.205.243.166 github.com
如果上面显示多个IP,就增加多个网址

打开cmd窗口
执行 ipconfig /flushdns
(斜杠之前有一个空格)
刷新DNS缓存
完成,再访问github.com就很快了。

相关阅读
正则表达式全部符号解释
连云港鑫海国际旅行社
CSS教程:li和ul标签具体用法举例
漂亮的页面loading等待页面特效(3)
长城国际集团有限公司
曲阜中侨国际旅行社有限公司
web2.0网页--常用的XHTML标签的使用技巧方法介绍
取得鼠标所在位置的对象
更多信息>>栏目类别选择
百度小程序开发
微信小程序开发
微信公众号开发
uni-app
asp函数库
ASP
DIV+CSS
HTML
python
更多>>同类信息
抖音直播音挂载小雪花 懂车帝小程序
aliyun阿里云续费域名优惠口令(注册、续费都可以使用)
解决国内 github.com 打不开的准确方法
chrome谷歌浏览器中的谷歌翻译有问题一键修复处理
阿里云短信验证码签名不合法isv.SMS_SIGNATURE_ILLEGAL
facebook广告推广设定像素标准事件的值和币种等说明
更多>>最新添加文章
dw里面查找替换使用正则删除sqlserver里面的CONSTRAINT
Android移动端自动化测试:使用UIAutomatorViewer与Selenium定位元素
抖音直播音挂载小雪花 懂车帝小程序
javascript获取浏览器指纹可以用来做投票
火狐Mozilla Firefox出现:无法载入您的Firefox配置文件 它可能已经丢失 或是无法访问 问题解决集合处理办法
在Android、iOS、Windows、MacOS中微信小程序的文件存放路径
python通过代码修改pip下载源让下载库飞起
python里面requests.post返回的res.text还有其它的吗
更多>>随机抽取信息
Div+CSS布局应该注重语义、注重代码的重用性
asp正则表达式 替换HTML源文件里的链接地址
access数据库做的网站出现.ldb不能删除超过2KB之后就会网站访问不了数据库,提示数据库不存在
商务会议系统
关于网页里面的DOCTYPE见解
深山留言板V2.1 Build 090620