Solve the problem of slow opening of github website

The test is valid.

151.101...and the next two lines are not required, the role here is currently unknown.

I. Introduction

As a qualified programmer, how can you tolerate the slow opening speed of github? But this problem can be solved by modifying the hosts file information. Chrome is accessing github speed lever now!

Two, macOS solution

  1. Open the hosts file. Terminal inputsudo vim /private/etc/hosts
  2. In vim editing, enter i to edit the hosts file (if you press it to no effect, press enter again)
  3. You can directly paste the full set of github below to hosts. esc =>'shift + ;', switch vim to save mode. Then enter wq to save the hosts file
http://github.com 204.232.175.94 
http://gist.github.com 107.21.116.220
http://help.github.com 207.97.227.252  
http://nodeload.github.com 199.27.76.130
http://raw.github.com 107.22.3.110 
http://status.github.com 204.232.175.78
http://training.github.com 207.97.227.243 http://www.github.com

Terminal mode

If you feel unfamiliar with the vim editing commands, you can directly enter the file to modify

  • In the file => go to => go to the folder (shortcut key: Command+Shift+G) => enter /private/etc/  => open through text editing.app => paste the above

Text mode

  1. Flush DNS cache
dscacheutil -flushcache

Three, window solution

  1. Open the hosts file: C:\Windows\System32\drivers\etc\hosts
  2. You can open it with Notepad, etc. Paste the above code to save
  3. Flush DNS cache
ipconfig /flushdns

Four, visit github

At this time, the speed of accessing github should be rushed!
github
github (after hosts changed)

https://www.cnblogs.com/soyxiaobi/p/9531711.html

 

Guess you like

Origin blog.csdn.net/tjcwt2011/article/details/114224420