Springboot集成RocketMq搭建消息中间件服务closeChannel:closetheconnectiontoremoteaddress[]result:true

Springboot集成RocketMq搭建消息中间件服务closeChannel: close the connection to remote address[] result: true

Springboot集成RocketMq搭建消息中间件服务,开发完成,测试的时候忽然间,在控制台不断地打印 closeChannel: close the connection to remote address[] result: true

从表面意思可以看出是:无法连接RocketMq的服务。

解决方案

1、我们先去查看mq server服务端所在服务器的安全组是否打开了对应的10909-10912

2、接着查看我们的conf/broker.conf配置文件是否设置了brokerIP1=XXX.XXX.XXX.XX(服务器外网IP)(此处这个启动是单击模式的rocketMQ)

上面的错误基本上就是这两项所导致的!如果还未解决,那就在我们的启动broker命令的时候增加所使用的的配置文件的命令,

启动broker命令如下:

.inmqbroker.cmd -n (服务器公网地址):9876 -c conf/broker.conf autoCreateTopicEnable=true &

到这里我们关于closeChannel: close the connection to remote address[] result: true的问题就已经解决了

na.png

本网站文章未经允许禁止转载,合作/权益/投稿 请联系平台管理员 Email:epebiz@outlook.com