问答详情
源自:4-1 win安装activemq

activemq不能启动

win7系统,下载了解压了,然后管理员身份运行了,

wrapper  | --> Wrapper Started as Console

wrapper  | Launching a JVM...

jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org

jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.

jvm 1    |

jvm 1    | Java Runtime: Oracle Corporation 1.8.0_131 C:\Program Files\Java\jre1.8.0_131

jvm 1    |   Heap sizes: current=251392k  free=235662k  max=932352k

jvm 1    |     JVM args: -Dactivemq.home=../.. -Dactivemq.base=../.. -Djavax.net.ssl.keyStorePassword=password -Djavax.net.ssl.trustStorePassword=password -Djavax.net.ssl.keyStore=../../conf/broker.ks

 -Djavax.net.ssl.trustStore=../../conf/broker.ts -Dcom.sun.management.jmxremote -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties -Dactivemq.conf=../

../conf -Dactivemq.data=../../data -Djava.security.auth.login.config=../../conf/login.config -Xmx1024m -Djava.library.path=../../bin/win64 -Dwrapper.key=n48L6RiaEo_fRLgo -Dwrapper.port=32000 -Dwrapper

.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=125860 -Dwrapper.version=3.2.3 -Dwrapper.native_library=wrapper -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1

上面那段显示了我的JDK是1.8,版本没问题。

jvm 1    |  INFO | Connector amqp started

jvm 1    | ERROR | Failed to start Apache ActiveMQ (localhost, ID:Apple-65439-1545498690819-0:1)

jvm 1    | 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.maxFr

ameSize=104857600 due to: java.net.BindException: Address already in use: JVM_Bind

jvm 1    |      at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:28)[activemq-client-5.15.8.jar:5.15.8]

jvm 1    |      at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:2264)[activemq-broker-5.15.8.jar:5.15.8]

jvm 1    |      at org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:2744)[activemq-broker-5.15.8.jar:5.15.8]

jvm 1    |      at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:2640)[activemq-broker-5.15.8.jar:5.15.8]

jvm 1    |      at org.apache.activemq.broker.BrokerService.doStartBroker(BrokerService.java:771)[activemq-broker-5.15.8.jar:5.15.8]

jvm 1    |      at org.apache.activemq.broker.BrokerService.startBroker(BrokerService.java:733)[activemq-broker-5.15.8.jar:5.15.8]

jvm 1    |      at org.apache.activemq.broker.BrokerService.start(BrokerService.java:636)[activemq-broker-5.15.8.jar:5.15.8]

jvm 1    |      at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:73)[activemq-spring-5.15.8.jar:5.15.8]

jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_131]

jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[:1.8.0_131]

jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[:1.8.0_131]

然后就开始报错了,看原因貌似是端口被占了。

可是问题来了,我netstat -aon|findstr "61616",netstat -aon|findstr "61613",netstat -aon|findstr "8161",反正61613到61616各个端口都试过了,这些端口都没有反应,找不到占了端口的pid,查过网上的有人说ICS服务会影响,但我本机的ICS已经禁用了。本来在docker上用rabbitmq的,rabbitmq能正常用的,怕端口冲突也把那个的images删掉了,但这次activemq服务还是启动报错,心累啊,安装这一步也能卡住半天……所以各位大胸弟,哪儿出错了哎?端口号也没被占啊

提问者:慕粉9256971 2018-12-23 01:23

个回答

  • 懂渊
    2019-07-04 17:55:25

    重启电脑试试