启动ActiveMQ代理会导致错误
我正试图按照下面的说明在Windows计算机上启动activemq代理 下载Windows二进制文件后,我转到安装目录,并按照指示使用bin/activemq启动代理。启动失败,在扫描文本墙后,我发现了以下错误启动ActiveMQ代理会导致错误,activemq,Activemq,我正试图按照下面的说明在Windows计算机上启动activemq代理 下载Windows二进制文件后,我转到安装目录,并按照指示使用bin/activemq启动代理。启动失败,在扫描文本墙后,我发现了以下错误 ERROR | Failed to start Apache ActiveMQ ([localhost, ID:[Computer ID]:1], java.io.IOException: Transport Connector could not be registered i
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正常运行的想法吗 有几件事需要尝试
您的系统上有东西阻止访问该端口、正在运行的服务、防火墙等。我会尝试从命令提示符运行
netstat-anb
,看看您是否可以使用端口5672找到一些东西。我会尝试从命令提示符运行netstat-nlp,看看您是否可以使用端口5672找到一些东西。然后使用进程id终止此进程(kill-9)将activemq_home/conf/activemq.xml中的amqp端口更改为类似5673的其他端口,然后重新启动activemq
以下是必须查看的一些基本和重要配置区域。如果您发现了问题,请尝试更改
activemq.xml
中提到的端口:-
<transportConnector name="openwire" uri="tcp://0.0.0.0:6616?maximumConnection
<transportConnector name="amqp" uri="amqp://0.0.0.0:5673?maximumConnections=1
<transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnection
<transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1
<transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000
<transportConnector name="openwire" uri="tcp://0.0.0.0:6616?maximumConnection
<transportConnector name="amqp" uri="amqp://0.0.0.0:5673?maximumConnections=1
<transportConnector name="stomp" uri="stomp://0.0`enter code here`.0.0:61613?maximumConnection
<transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1
<transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000
我确认端口更改有效。
在我的示例中,端口1883到18830,mqqt部分:
name="mqtt" uri="mqtt://0.0.0.0:1883
我只是在端口端添加了零,如下所示:
name="mqtt" uri="mqtt://0.0.0.0:18830
作为一种魅力。