我正在尝试按照以下说明在 Windows 机器上启动 activemq 代理
http://activemq.apache.org/getting-started.html#GettingStarted-StartingActiveMQ
下载 Windows 二进制文件后,我切换到安装目录并按照说明使用 bin/activemq 启动代理。启动失败,在扫描文本墙后,我发现了以下错误。
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)
Run Code Online (Sandbox Code Playgroud)
已在使用的地址使我相信另一个 amqp 代理,例如 RabbitMQ 或 Qpid(两者都已安装),可能已经分配了连接,因此我重新启动了计算机,但没有成功消除错误。
谁能给我一些关于如何尝试让 ActiveMQ 正常运行的想法。
小智 6
将 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&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="amqp" uri="**amqp://0.0.0.0:5673**?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
</transportConnectors>