Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that the githubusercontent address of GitHub web page cannot be accessed?

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains how to solve the problem that the githubusercontent address of the GitHub page cannot be accessed. Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn how to solve the problem that the githubusercontent address of the GitHub web page cannot be accessed.

1. Hosts content # update # GitHub Start52.74.223.119 github.com52.74.223.119 gist.github.com54.169.195.247 api.github.com185.199.111.153 assets-cdn.github.com199.232.96.133 raw.githubusercontent.com199.232.96.133 gist.githubusercontent.com199.232.96.133 cloud.githubusercontent.com199.232.96.133 camo.githubusercontent.com199.232.96.133 on December 30, 2020 Avatars0.githubusercontent.com199.232.96.133 avatars1.githubusercontent.com199.232.96.133 avatars2.githubusercontent.com199.232.96.133 avatars3.githubusercontent.com199.232.96.133 avatars4.githubusercontent.com199.232.96.133 avatars5.githubusercontent.com199.232.96.133 avatars6.githubusercontent.com199.232.96.133 avatars7.githubusercontent.com199.232.96.133 avatars8.githubusercontent.com199.232.96.133 user-images.githubusercontent.com185.199.109. Github.githubassets.com# GitHub End Note: the ip corresponding to the domain name is queried through the dns query tool. You should choose ip with relatively small latency and relatively stable latency.

If it does not work, or the speed is not ideal, refer to the search domain name IP.

two。 How to modify

SwitchHosts is recommended here! Configure hosts, which is easy to operate and supports cross-platform.

Copy the previous hosts content to the software configuration, related introduction refer to the following article.

SwitchHosts! Can still manage hosts like this, regret not using it earlier

2.1 Windows

Hosts file location: C:/windows/system32/drivers/etc/hosts.

Append the previous content to hosts, and then flush the DNS cache:

Ipconfig / flushdns2.2 Mac

Hosts file location: / etc/hosts.

Under the Mac system, the modification needs to be as follows:

1: first, open (visit to) Finder.

2: use the key combination Shift+Command+G to open "go to folder" and enter / etc/hosts in the input box.

3: then jump to the hosts file location.

Copy the hosts file to the desktop, right-click / right-click it, select "Open method"-"text Edit", open the hosts file, and then modify the content you want to modify directly in it.

Then copy your modified hosts file back to the path where the hosts file is located (under the folder): / etc/hosts and replace the original hosts file.

Note: if the password entry box pops up, you need to enter the password of your current computer login account.

Finally, refresh the cache:

Sudo killall-HUP mDNSResponder3. Find the domain name IP

DNS query-webmaster tool

IP or domain name query-query website

IPAddress.com

Note: the actual use of IPAddress will not take effect until December 30th, 2020. The IP obtained by the previous two query sites cannot be used, so you can try it until it takes effect.

The domain names in the previous hosts are divided into two categories:

* .githubusercontent.com

* .github.com

* .githubusercontent.com can use the same IP without the need for each separate query. * .github.com has not been tested, so it seems that the corresponding IP needs to be queried separately.

At this point, I believe you have a deeper understanding of "how to solve the problem that the githubusercontent address of the GitHub page cannot be accessed". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report