美文网首页
Github登录不上去解决办法(win10)

Github登录不上去解决办法(win10)

作者: Mr_Fly | 来源:发表于2021-03-01 09:55 被阅读0次

1、win10系统中:

修改hosts文件-解析dns。文件位置:

<pre style="margin: 0px; padding: 0px; overflow: auto; overflow-wrap: break-word; font-family: "Courier New" !important; font-size: 12px !important; white-space: pre;">C:\Windows\System32\drivers\etc</pre>

可以用文本打开,添加dns解析:(复制到hosts最后即可)

[ 复制代码

](javascript:void(0); "复制代码")

<pre style="margin: 0px; padding: 0px; overflow: auto; overflow-wrap: break-word; font-family: "Courier New" !important; font-size: 12px !important; white-space: pre;">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</pre>

[ 复制代码

](javascript:void(0); "复制代码")

2、ubuntu系统中:

修改hosts文件,文件位置:(用vim打开在最后添加同上的dns解析)

<pre style="margin: 0px; padding: 0px; overflow: auto; overflow-wrap: break-word; font-family: "Courier New" !important; font-size: 12px !important; white-space: pre;">sudo vim /etc/hosts</pre>

3、win10更新dns:

<pre style="margin: 0px; padding: 0px; overflow: auto; overflow-wrap: break-word; font-family: "Courier New" !important; font-size: 12px !important; white-space: pre;">ipconfig /flushdns</pre>

4、ubuntu更新dns:

<pre style="margin: 0px; padding: 0px; overflow: auto; overflow-wrap: break-word; font-family: "Courier New" !important; font-size: 12px !important; white-space: pre;">sudo /etc/init.d/dns-clean start</pre>

补充:更新完后重启浏览器。

[ image

](javascript:void(0))

dns解析服务器IP的获得:

dns解析网址中输入要解析的域名,点击检索,找TTL值最小的IP,添加进hosts,做为域名解析。

相关文章

网友评论

      本文标题:Github登录不上去解决办法(win10)

      本文链接:https://www.haomeiwen.com/subject/atiofltx.html