Mac无法启动activemq

2019-12-09  本文已影响0人  dbc94a66f502
安装方式1
To have launchd start activemq now and restart at login:

 brew services start activemq

Or, if you don't want/need a background service you can just run:

 activemq start

==> Summary

 /usr/local/Cellar/activemq/5.14.4

访问  [http://127.0.0.1:8161/admin/](http://127.0.0.1:8161/admin/)

安装方式2

/Users/libo/Library/apache-activemq-5.15.8

./bin/activemq start

无法启动

我使用方法2进行安装,之前activemq是可以正常启动的,但某天想启动的时候一直不成功,之前start命令也没有提示什么错误,查看61616端口也没有被占用,网上查找也没查到原因。后来才想起查看日志文件,原来是61613端口被占用了。

2019-12-09 15:43:01,673 | WARN  | Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class path resource [activemq.xml]: Invocation of init method failed; nested exception is java.io.IOException: Transport Connector could not be registered in JMX: java.io.IOException: Failed to bind to server socket: stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600 due to: java.net.BindException: Address already in use (Bind failed) | org.apache.activemq.xbean.XBeanBrokerFactory$1 | main
COMMAND   PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
beam.smp 1132 libo   76u  IPv6 0xed8b64536b07e10d      0t0  TCP *:61613 (LISTEN)
上一篇 下一篇

猜你喜欢

热点阅读