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

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

2023/1/1 16:03:03 字体:大 中 小 浏览 4199

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就很快了。

相关阅读
还在备案期间是否可以提前购买系统?
dreawmeaver中鲜为人知的小秘诀,让你制作网页更加随心所欲.
css背景使用base64编码或者将base64编码放在img图片标签中
Html中的Frame详解
旅行社线路主题默认模板2
jquery实现单选按钮radio选中和取消 使用prop()代替attr()
div+CSS的无限级扩展下拉菜单(全部加了注释)
旅行社手机网站模板5
更多信息>>栏目类别选择
百度小程序开发
微信小程序开发
微信公众号开发
uni-app
asp函数库
ASP
DIV+CSS
HTML
python
更多>>同类信息
抖音直播音挂载小雪花 懂车帝小程序
aliyun阿里云续费域名优惠口令(注册、续费都可以使用)
解决国内 github.com 打不开的准确方法
chrome谷歌浏览器中的谷歌翻译有问题一键修复处理
阿里云短信验证码签名不合法isv.SMS_SIGNATURE_ILLEGAL
facebook广告推广设定像素标准事件的值和币种等说明
更多>>最新添加文章
2026 aliyun阿里域名云注册续费优惠口令
dw里面查找替换使用正则删除sqlserver里面的CONSTRAINT
Android移动端自动化测试:使用UIAutomatorViewer与Selenium定位元素
抖音直播音挂载小雪花 懂车帝小程序
javascript获取浏览器指纹可以用来做投票
火狐Mozilla Firefox出现:无法载入您的Firefox配置文件 它可能已经丢失 或是无法访问 问题解决集合处理办法
在Android、iOS、Windows、MacOS中微信小程序的文件存放路径
python通过代码修改pip下载源让下载库飞起
更多>>随机抽取信息
微信小程序打开客服提示:该小程序提供的服务出现故障,请稍后重试
网上页面java图片循环滚动特效
24款实用的翻页页码css代码
asp自定义格式化日期函数
亿菇缘
微信小程序直播组件live-player-plugin(wx2b03c6e691cd7370)