首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >启动ActiveMQ broker,会导致错误

启动ActiveMQ broker,会导致错误
EN

Stack Overflow用户
提问于 2014-03-25 00:40:04
回答 6查看 7K关注 0票数 5

我正在尝试按照下面的说明在Windows计算机上启动activemq代理

http://activemq.apache.org/getting-started.html#GettingStarted-StartingActiveMQ

下载Windows二进制文件后,我切换到安装目录,并按照说明使用bin/activemq启动代理。启动失败,在扫描文本墙后,我发现了以下错误。

代码语言:javascript
运行
复制
ERROR | Failed to start Apache ActiveMQ ([localhost, ID:[Computer ID]:1], java.io.IOException:    Transport Connector could not be registered i
n JMX: Failed to bind to server socket: amqp://0.0.0.0:5672?maximumConnections=1
000&wireFormat.maxFrameSize=104857600 due to: java.net.BindException: Address al
ready in use: JVM_Bind)

已在使用的地址使我相信另一个amqp代理,如RabbitMQ或Qpid(这两个都已安装)可能已经分配了连接,因此我重新启动了计算机,但没有成功消除错误。

谁能给我一些关于如何让ActiveMQ正常运行的建议?

EN

回答 6

Stack Overflow用户

发布于 2015-05-11 20:51:01

将activemq_home/conf/activemq.xml中的amqp端口更改为其他端口,如5673,然后重新启动activemq <transportConnectors> <!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB --> <transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/> <transportConnector name="amqp" uri="**amqp://0.0.0.0:5673**?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/> <transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/> <transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/> <transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/> </transportConnectors>

票数 7
EN

Stack Overflow用户

发布于 2014-03-29 02:36:16

我会尝试从命令提示符运行netstat -anb,看看是否可以使用端口5672找到一些东西。

票数 1
EN

Stack Overflow用户

发布于 2014-08-25 18:44:55

我会尝试从命令提示符运行netstat -nlp,看看是否可以使用端口5672找到一些东西。然后使用process-id终止这个进程(kill -9 )

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22615374

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档