配置访问github

前言:众所周知因为某些原因国内很难连接github,可以通过以下方式来解决这个问题:

1.在中国站长上查询github的dns解析:

戳我,在查询栏输入www.github.com

2.修改本地的hosts文件,建立对github的解析:

C:\Windows\System32\drivers\etc\hosts

添加:

  IP  https://www.github.com

ok了,这样就可以访问了

posted @ 2020-06-04 10:22  小雨淅淅o0  阅读(603)  评论(0)    收藏  举报