如何通过Openshift访问套接字 [英] How can I access socket through Openshift

查看:147
本文介绍了如何通过Openshift访问套接字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Openshift.com注册并创建了一个catridge。但是当我需要部署通过tcp或s​​sl协议访问的MQTT服务器Mosquitto时,我需要从公共IP访问。
Openshift只是将http / https协议通过80/443端口重定向到8080吗?
是否可以在Openshift中使用套接字通信?

I register in the Openshift.com and create a catridge. But when I need to deploy Mosquitto, a MQTT Server, which is accessed through tcp or ssl protocol, and I need visit from public IP. Does Openshift just redirect http/https protocol through 80/443 port to 8080? Is it possible to use socket communcation in Openshift?

我在Openshift中创建了两个应用程序,一个用于推送,另一个用于Web部署,我停止了apache服务,以便让mosquitto服务收听8080.但是,只有我在https中发送帖子请求协议,它可以访问服务器一段时间并断开连接。

I have created two applications in Openshift, one for push and the other for web deployment, and I stopped the apache service in order to let the mosquitto service listen to 8080. But only if I send post request in https protocol, It can access to the server for a while and disconnect.

推荐答案

我认为这可能会指向正确的方向< a href =https://www.openshift.com/blogs/paas-websockets\"rel =nofollow> https://www.openshift.com/blogs/paas-websockets 。

I think this might point you in the right direction https://www.openshift.com/blogs/paas-websockets.

这篇关于如何通过Openshift访问套接字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆