Github加载太慢或加载不全或进不去的解决办法

Github加载太慢或加载不全或进不去的解决办法

打开电脑c盘
–》 windows
–》System32
–》dirvers
–》etc
–》hosts
把这个hosts文件复制到桌面,用记事本的方式打开
然后再搜索下面两个网址对应的IP,查询IP的网站连接:IP地址查询
分别输入 github.global.ssl.fastly.net和github.com
会分别得到IP ddress地址,复制下来
在hosts文件的最后添加

# github 
IP地址 github.global.ssl.fastly.net 
ip地址 github.com 

如:

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#	127.0.0.1       localhost
#	::1             localhost
127.0.0.1  www.xmind.net

# github 
69.171.247.71  github.global.ssl.fastly.net
52.74.223.119  github.com 

最后在把这个文件放回原处 ,直接覆盖就可以了 ,在进入github的时候就一下进去了。

你可能感兴趣的:(异常处理)