不能访问谷歌上面源码的解决方案

最近在提交代码到Google的svn服务器的时候,发现不能访问https://code.google.com/hosting/settings地址。咱们都知道,改地址是生成提交svn密码的地址,若是不能访问,将致使代码没法提交。git

下面给出解决方案:github

1 在cmd里面ping www.google.com,咱们能够看见IP地址;web

2 在c:/windows/system32/drivers/etc/hosts文件追加以下内容(将xxx.xxx.xxx.xxx替换为你ping得的IP地址):windows

xxx.xxx.xxx.xxx code.google.com 服务器

xxx.xxx.xxx.xxx encrypted.google.com svn

xxx.xxx.xxx.xxx suggestqueries.google.com google

xxx.xxx.xxx.xxx mail.google.com code

xxx.xxx.xxx.xxx groups.google.com get

xxx.xxx.xxx.xxx groups.google.com.hk cmd

xxx.xxx.xxx.xxx docs.google.com 

xxx.xxx.xxx.xxx docs0.google.com 

xxx.xxx.xxx.xxx docs1.google.com 

xxx.xxx.xxx.xxx spreadsheets.google.com 

xxx.xxx.xxx.xxx spreadsheets0.google.com 

xxx.xxx.xxx.xxx webcache.googleusercontent.com 

xxx.xxx.xxx.xxx sites.google.com 

xxx.xxx.xxx.xxx talkgadget.google.com 

xxx.xxx.xxx.xxx clients1.google.com 

xxx.xxx.xxx.xxx clients2.google.com 

xxx.xxx.xxx.xxx clients3.google.com 

xxx.xxx.xxx.xxx clients4.google.com

 

这样就能够访问。

咱们的在Google svn上面的代码朝不保夕,真担忧哪一天不能访问。你们能够尝试将代码放到https://github.com/上面。

相关文章
相关标签/搜索