惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Security @ Cisco Blogs
Microsoft Security Blog
Microsoft Security Blog
GbyAI
GbyAI
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
L
LangChain Blog
爱范儿
爱范儿
N
Netflix TechBlog - Medium
The Register - Security
The Register - Security
Jina AI
Jina AI
V
V2EX
Hugging Face - Blog
Hugging Face - Blog
I
InfoQ
罗磊的独立博客
Stack Overflow Blog
Stack Overflow Blog
Microsoft Azure Blog
Microsoft Azure Blog
Last Week in AI
Last Week in AI
Recorded Future
Recorded Future
D
DataBreaches.Net
Project Zero
Project Zero
博客园 - 【当耐特】
宝玉的分享
宝玉的分享
T
The Exploit Database - CXSecurity.com
A
Arctic Wolf
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Engineering at Meta
Engineering at Meta
D
Docker
F
Fortinet All Blogs
P
Palo Alto Networks Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Tailwind CSS Blog
S
Schneier on Security
博客园 - 司徒正美
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Scott Helme
Scott Helme
Security Latest
Security Latest
V
Visual Studio Blog
T
Tor Project blog
I
Intezer
T
Threat Research - Cisco Blogs
MyScale Blog
MyScale Blog
月光博客
月光博客
MongoDB | Blog
MongoDB | Blog
P
Privacy International News Feed
云风的 BLOG
云风的 BLOG
C
Cisco Blogs
The Cloudflare Blog
Simon Willison's Weblog
Simon Willison's Weblog
Vercel News
Vercel News
S
Securelist

博客园 - Jack Niu

最简单的判断是否为IE浏览器的方法 - document.documentMode “Microsoft.Build.Tasks.Xaml.PartialClassGenerationTask“ task could not be loaded from the assembly ASP.NET Core MVC 入门到精通 - 1. 开发必备工具 (2021) ASP.NET Core MVC 入门到精通 - 3. 使用MediatR 算法 - 计算汉明距离 浏览器(Cache)的缓存逻辑(HTTP条件请求) 算法: 合并两个有序链表 前端进阶(2)使用fetch/axios时, 如何取消http请求 前端进阶(1)Web前端性能优化 2021 Top 100 C#/.NET Interview Questions And Answers 安装umi后,使用umi提示不是内部或者外部命令 (算法) - 不使用递归,实现斐波那契数列 2021 .NET/dotnet Core/C# 面试题及参考答案 2021 Vue.js 面试题汇总及答案 CSS3 Flex Box 弹性盒子、弹性布局 Angular入门到精通系列教程(15)- 目录结构(工程结构)推荐 Angular入门到精通系列教程(14)- Angular 编译打包 & Docker发布 Angular入门到精通系列教程(13)- 路由守卫(Route Guards) Angular入门到精通系列教程(12)- 路由(Routing) Angular入门到精通系列教程(11)- 模块(NgModule),延迟加载模块
解决国内不能访问github的问题
Jack Niu · 2021-04-19 · via 博客园 - Jack Niu

问题

最近访问GitHub总是不稳定,经常连不上, 出各种错误(OpenSSL SSL_read: Connection was reset, errno 10054, Connection refused ...)。

原因大概是GitHub的IP经常变化(一天可能变几次),我们本地的DNS解析有问题,解决办法就是查询github的IP,手工写到我们的hosts文件中。

查询GitHub最新IP

  1. 访问 https://github.com.ipaddress.com/
  2. IP Address 即为IP地址
    github ip

修改hosts文件

  1. 目录:C:\Windows\System32\drivers\etc
  2. 打开 hosts文件
  3. 结尾增加一行 140.82.112.4 github.com (IP 用你查询到的最新的IP)
  4. 搞定,测试一下

说明,hosts文件, 可以给github.com添加多条IP记录,这样当我们访问github时,会一次尝试每个IP是否可以访问,如果都不行,会去Internet上做DNS解析。
可以这样配置

140.82.112.4	github.com
140.82.113.4	github.com
140.82.112.3	github.com
140.82.114.4	github.com