GitHub总是连接超时的问题
更新Hosts文件
手动指定GitHub域名的最新IP地址:
获取最新IP:
- 访问 https://ipaddress.com/,查询以下域名的IP:
1
2
3github.com
assets-cdn.github.com
github.global.ssl.fastly.net
- 访问 https://ipaddress.com/,查询以下域名的IP:
修改Hosts文件:
Windows:
C:\Windows\System32\drivers\etc\hosts
Mac/Linux:
/etc/hosts
添加格式(示例):
<!--hexoPostRenderEscape:<figure class="highlight accesslog"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="number">140.82.113.4</span> github.com</span><br></pre></td></tr></table></figure>:hexoPostRenderEscape-->