凯发k8国际娱乐官网入口-k8凯发> 云容器实例 cci> > > 如何解决connection timed out问题?
更新时间:2022-08-31 gmt 08:00

如何解决connection timed out问题?-凯发k8国际娱乐官网入口

问题现象:

cci实例创建正常,使用python django smtp服务发送邮件时,一直提示“[errno 110] connection timed out”错误。

问题原因:

  • 客户仅购买了elb服务未购买nat网关服务,故只能从外部访问容器。购买nat网关后,才可以从容器内部访问外部网络。
  • 为了确保良好的网络安全环境,华为云对25端口对外发送做了限制。

解决方法:

  • 方法一:使用,该服务能够为vpc内的容器实例提供网络地址转换(network address translation)服务,snat功能通过绑定弹性公网ip,实现私有ip向公有ip的转换,可实现vpc内的容器实例共享弹性公网ip访问internet。详情请参见。
  • 方法二:联系技术人员,放通客户新申请的弹性公网ip的25端口。
分享:

more

网站地图