不能訪問谷歌上面源碼的解決方案

最近在提交代碼到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/上面。

相關文章
相關標籤/搜索