github墙外

# 基础的host

搜索IP地址:https://www.ipaddress.com/

查询动态的github及资源的IP;

  • github.com; 最后路径为:https://websites.ipaddress.com/github.com
  • raw.githubusercontent.com;最后路径为:https://websites.ipaddress.com/raw.githubusercontent.com

image-20211118142915580

image-20211118142903560

# linux系系统

# 解决GitHub的raw.githubusercontent.com无法连接问题

修改hosts Ubuntu,CentOS及macOS/或者云服务器;直接在终端输入 sudo vi /etc/hosts

添加以下内容保存即可 (IP地址查询后相应修改,可以ping不同IP的延时 选择最佳IP地址)

# GitHub Start
# 52.74.223.119 github.com
140.82.114.3 github.com
192.30.253.119 gist.github.com
54.169.195.247 api.github.com
185.199.111.153 assets-cdn.github.com
151.101.76.133 raw.githubusercontent.com
151.101.108.133 user-images.githubusercontent.com
151.101.76.133 gist.githubusercontent.com
151.101.76.133 cloud.githubusercontent.com
151.101.76.133 camo.githubusercontent.com
151.101.76.133 avatars0.githubusercontent.com
151.101.76.133 avatars1.githubusercontent.com
151.101.76.133 avatars2.githubusercontent.com
151.101.76.133 avatars3.githubusercontent.com
151.101.76.133 avatars4.githubusercontent.com
151.101.76.133 avatars5.githubusercontent.com
151.101.76.133 avatars6.githubusercontent.com
151.101.76.133 avatars7.githubusercontent.com
151.101.76.133 avatars8.githubusercontent.com
# GitHub End
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

# window系统

位置路径:C:\Windows\System32\drivers\etc;

用超级管理员权限编辑文件;

上次更新: 2022/04/15, 05:41:30
×