Google服务的使用方法

  我们在访问Google的某些服务的时候经常会遇到这样的错误:错误 101 (net::ERR_CONNECTION_RESET):连接已重置。下面介绍国内使用google2个服务的处理办法:

1、国内使用plus.google.com最简单的方法-修改hosts文件法

一、修改google+  的hosts列表即可实现

打开我的电脑,在文件夹地址栏中输入C:\Windows\System32\drivers\etc\hosts,然后出现选择打开方式,您选择用记事本打开,把新的“google+  的hosts列表”粘贴进来即可。

测试访问kai的google+主页吧!!!

kai的Google+访问网址:https://plus.google.com/111449746323969257632

松松的google+网址:https://plus.google.com/101700516502115438894

二、复制下面的文件,覆盖记事本的文件即可

#Google+
203.208.46.179 spreadsheets.google.com
203.208.46.179 maps-api-ssl.google.com
203.208.46.179 translate.google.com
203.208.46.179 0-focus-opensocial.googleusercontent.com
203.208.46.179 images6-focus-opensocial.googleusercontent.com
203.208.46.179 images5-focus-opensocial.googleusercontent.com
203.208.46.179 images4-focus-opensocial.googleusercontent.com
203.208.46.179 images3-focus-opensocial.googleusercontent.com
203.208.46.179 images2-focus-opensocial.googleusercontent.com
203.208.46.179 images1-focus-opensocial.googleusercontent.com
203.208.46.179 lh6.googleusercontent.com
203.208.46.179 lh5.googleusercontent.com
203.208.46.179 lh3.googleusercontent.com
203.208.46.179 lh2.googleusercontent.com
203.208.46.179 lh1.googleusercontent.com
203.208.46.179 lh4.googleusercontent.com
203.208.46.179 webcache.googleusercontent.com
203.208.46.179 mail.google.com
203.208.46.179 picasaweb.google.com
203.208.46.179 labs.google.com
203.208.46.179 googlelabs.com

203.208.46.179 docs.google.com
203.208.46.179 plus.google.com
203.208.46.179 profiles.google.com
203.208.46.179 services.google.com
203.208.46.179 clients4.google.com
203.208.46.179 clients2.google.com
203.208.46.179 chrome.google.com
203.208.46.179 tools.google.com
203.208.46.179 talkgadget.google.com
203.208.46.179 ssl.gstatic.com
203.208.46.179 clients2.googleusercontent.com
203.208.46.179 clients1.googleusercontent.com
203.208.46.179 clients3.googleusercontent.com
203.208.46.179 clients4.googleusercontent.com

203.208.46.30 google.com

203.208.46.30 google.com.hk

203.208.46.30 picadaweb.google.com

203.208.46.30 s6.googleusercontent.com
203.208.46.30 s5.googleusercontent.com
203.208.46.30 s4.googleusercontent.com
203.208.46.30 s3.googleusercontent.com
203.208.46.30 s2.googleusercontent.com
203.208.46.30 s1.googleusercontent.com

203.208.46.30 plus.google.com
203.208.46.30 talkgadget.google.com
203.208.46.30 ditu.google.com
203.208.46.30 maps-api-ssl.google.com
203.208.46.30 mail.google.com
203.208.46.30 docs.google.com
203.208.46.30 pop.gmail.com
203.208.46.30 scholar.l.google.com
203.208.46.30 news.google.com
203.208.46.30 video.google.com
203.208.46.179 translate.google.com

203.208.46.30 profiles.google.com

 

三、打开google加内的外部链解决办法

修改hosts之后。打开google+中的外部链接,163、新浪的也好,都会提示

糟糕!谷歌浏览器无法找到 plus.google.com.hk

解决办法一:

直接右键点击链接,在新窗口打开即可

解决办法二:

复制链接,在地址栏打开即可

好,最好希望大家在google+玩儿得开心。

2、使用 Picasa 网络相册的方法

请使用https://picasa.google.com,而不是http://picasa.google.com访问

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
gRPC是Google开源的一款高性能、通用的远程过程调用(RPC)框架,支持多种编程语言。它可以让客户端应用程序像调用本地对象一样直接调用远程服务,使得分布式应用程序更加容易构建。下面简单介绍一下gRPC的原理和使用方法。 ## 原理 gRPC采用基于HTTP/2协议的传输方式,使用protobuf作为序列化协议,在网络传输时,客户端和服务端通过protobuf序列化和反序列化来进行数据的传输和解析。gRPC的传输方式可以使用TLS加密,确保数据的安全性。 gRPC支持四种服务类型: - Unary:一元RPC,客户端发送一个请求给服务端,服务端返回一个响应结果。 - Server streaming:服务器流式RPC,客户端发送一个请求给服务端,服务端返回一个消息流给客户端,即服务器可以使用流式响应多次。 - Client streaming:客户端流式RPC,客户端使用流式传输一系列消息给服务端,服务端返回一个响应结果。 - Bidirectional streaming:双向流式RPC,客户端和服务端都可以使用流式传输来发送消息,客户端和服务端可以同时使用流式消息互相通讯。 ## 使用方法 gRPC的使用步骤如下: 1. 定义服务接口:使用protobuf语言定义服务接口,包括服务方法名、请求参数和响应类型。 2. 生成服务端和客户端代码:使用protobuf编译器将服务接口定义文件生成对应语言的代码,生成的代码包含服务端和客户端的代码。 3. 实现服务端:编写服务端代码,实现服务端接口定义中的方法。 4. 实现客户端:编写客户端代码,调用服务端提供的方法。 5. 启动服务端和客户端:启动服务端和客户端,使它们可以相互通信。 gRPC的使用方法可以分为下面几个步骤: 1. 安装gRPC:安装gRPC的核心库和插件。 2. 定义服务接口:使用protobuf语言定义服务接口。 3. 生成代码:使用protobuf编译器生成对应语言的代码。 4. 实现服务端:编写服务端代码。 5. 实现客户端:编写客户端代码。 6. 启动服务端和客户端:启动服务端和客户端,使它们可以相互通信。 以上就是gRPC的原理和使用方法的简单介绍,如果需要更加详细的了解可以参考官方文档。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值