current position:Home>Solution to GitHub failure or slow access

Solution to GitHub failure or slow access

2022-01-27 02:22:04 1024_ Byte

One 、 modify hosts file

hosts The directory of the file :C:\Windows\System32\drivers\etc

Open it with notepad , Notepad needs to be opened with administrator privileges , The method is as follows :

1、 Search notepad in the search bar
 Insert picture description here

2、 Right click to open notepad with administrator privileges
 Insert picture description here

3、 Select the file in the top left corner in Notepad —> open

 Insert picture description here

4、 Enter... In the address bar above the file selection window C:\Windows\System32\drivers\etc enter
 Insert picture description here

5、 Change the lower right corner to all files
 Insert picture description here

6、 choice hosts file , Click on the open

Add the following at the end :

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

 Insert picture description here

7、 Press CTRL+S preservation , Then close it

Successful visit

Two 、 If you just want to open it on your phone

     Download a quark browser , I can't even open my home network with other browsers , Then the browser can open , Or maybe it uses some kind of acceleration principle , Not clear , Anyway, you can use this on your mobile phone to open .

author : The little captain of heaven https://www.bilibili.com/read/cv5005933 Source :bilibili

copyright notice
author[1024_ Byte],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/01/202201270222015845.html

Random recommended