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
- Open the hosts file. Terminal input
sudo vim /private/etc/hosts
- In vim editing, enter i to edit the hosts file (if you press it to no effect, press enter again)
- 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
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
- Flush DNS cache
dscacheutil -flushcache
Three, window solution
- Open the hosts file: C:\Windows\System32\drivers\etc\hosts
- You can open it with Notepad, etc. Paste the above code to save
- Flush DNS cache
ipconfig /flushdns
Four, visit github
At this time, the speed of accessing github should be rushed!
github
https://www.cnblogs.com/soyxiaobi/p/9531711.html