GitHub 访问慢解决方案
GitHub DNS 大约 1084 字2021-04-21 编辑
GitHub
访问更多因为DNS
解析问题,可自己登陆IPAddress
网站查询可用DNS
,具体可参考最新文章解决方案:https://www.zhangbj.com/p/773.html
配置 hosts 文件
Windows hosts
文件位置
C:\Windows\System32\drivers\etc\hosts
Linux hosts
文件位置
/ect/hosts
修改 hosts 文件
追加以下内容
# GitHub Start
192.30.253.112 github.com
192.30.253.119 gist.github.com
151.101.100.133 assets-cdn.github.com
151.101.100.133 raw.githubusercontent.com
151.101.100.133 gist.githubusercontent.com
151.101.100.133 cloud.githubusercontent.com
151.101.100.133 camo.githubusercontent.com
151.101.100.133 avatars0.githubusercontent.com
151.101.100.133 avatars1.githubusercontent.com
151.101.100.133 avatars2.githubusercontent.com
151.101.100.133 avatars3.githubusercontent.com
151.101.100.133 avatars4.githubusercontent.com
151.101.100.133 avatars5.githubusercontent.com
151.101.100.133 avatars6.githubusercontent.com
151.101.100.133 avatars7.githubusercontent.com
151.101.100.133 avatars8.githubusercontent.com
# GitHub End
刷新DNS
Windows
ipconfig /flushdns
Linux
centos6:
sudo /etc/init.d/networking restart
centos7:
systemctl restart network
阅读 2137 · 发布于 2019-03-24
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
Linux 查看内存信息阅读 2232
-
阿里云服务器 CentOS 操作系统关闭阿里云盾(安骑士)阅读 2443
-
Element UI DatePicker 时间跨度限制在同一个月内阅读 4897
-
Windows 子系统修改 root 用户密码阅读 434
-
Linux 分析 PHP 进程内存占用阅读 1882
-
Vue Router 页面间传递参数阅读 1009
-
Windows10 Vmmen 进程无法结束解决办法阅读 2951
-
解决 HTTP 请求参数中的加号被替换为空格问题阅读 5465
-
数据结构:简化平衡二叉树旋转时节点交换的操作阅读 909
-
Spring Boot 3 新增 ControllerAdvice 错误处理类 ProblemDetail阅读 28