萬盛學電腦網

 萬盛學電腦網 >> 服務器教程 >> activemq服務無法正常啟動

activemq服務無法正常啟動

   org.apache.activemq.xbean.XBeanBrokerFactory$1@1a7e798: startup date [Wed Sep 26 13:26:41 CST 2012]; root of context hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1 | main

  2012-09-26 13:26:42,162 | INFO | PListStore:[D:apache-activemq-5.6.0-binapache-activemq-5.6.0bin..datalocalhosttmp_storage ] started | org.apache.activemq.store.kahadb.plist.PListStore | main

  2012-09-26 13:26:42,187 | INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[D:apache-activemq-5.6.0-binapache-activemq-5.6.0bin..datakahadb] | org.apache.activemq.broker.BrokerService | main

  2012-09-26 13:26:42,961 | INFO | KahaDB is version 4 | org.apache.activemq.store.kahadb.MessageDatabase | main

  2012-09-26 13:26:42,997 | INFO | Recovering from the journal ... | org.apache.activemq.store.kahadb.MessageDatabase | main

  2012-09-26 13:26:42,998 | INFO | Recovery replayed 1 operations from the journal in 0.016 seconds. | org.apache.activemq.store.kahadb.MessageDatabase | main

  2012-09-26 13:26:43,016 | INFO | ActiveMQ 5.6.0 JMS Message Broker (localhost) is starting | org.apache.activemq.broker.BrokerService | main

  2012-09-26 13:26:43,017 | INFO | For help or more information please see: http://activemq.apache.org/ | org.apache.activemq.broker.BrokerService | main

  2012-09-26 13:26:43,360 | ERROR | Failed to start ActiveMQ JMS Message Broker (localhost, null). Reason: java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:61616 due to: java.net.BindException: Address already in use: JVM_Bind

  解決方法:

  經過非常辛苦的排查發現,我們發現Windows的一個服務占用了這個端口Internet Connection Sharing (ICS)把這個服務關閉即可。

  關於這個問題也挺無奈的使用netstat -an也查詢不到這個進程占用的端口。環境不同可能占用的程序也不同。

copyright © 萬盛學電腦網 all rights reserved