gateway本地可以实现但是部署到服务器就出问题

fy1031239048

首先为是模仿这个文档做的:http://www.imooc.com/article/17962?block_id=tuijian_wz
然后在本地是可以使用没问题,但部署到服务器centos7.3就有问题了,首先为以为是防火墙没关但是关闭状态的。,我这边图片传不了没办法看到图片,错误是客户端js 问题:sixin_detail.js?v=1513049680:56 WebSocket connection to 'ws://xxx.xx.xxx.xx:8282/' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT (anonymous) @ sixin_detail.js?v=1513049680:56还有 后端报错:Can not connect to tcp://127.0.0.1:1238

3141 1 0
1个回答

latin

ERR_CONNECTION_TIMED_OUT,要么防火墙没设置好,要么安全组没配好

年代过于久远,无法发表回答
🔝