2014-03-24 50 views
0

我试图按照指示在启动ActiveMQ代理,会导致错误

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

启动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 
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正常运行。

回答

0

几件事情要尝试。

  1. 检查端口是否被防火墙阻止。
  2. 更改AMQP传输连接器端口为其他值,5763等

也有一些是在你的系统阻止访问到该端口,运行的服务,防火墙等

1

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

0

我会尝试从命令提示符运行netstat -nlp,看看你是否可以找到使用端口5672的东西。然后使用process-id来杀死这个过程(杀-9)

1

将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>