您现在的位置是:首页 > 博客日记 > Liunx Liunx

ActiveMQ 的安装以及配置

2019-07-22 09:25:20 【Liunx】 人已围观

ActiveMQ

官网

ActiveMQ

下载

https://activemq.apache.org/components/artemis/download/

启动的话首先保证已经安装 java jdk

windows 启动

打开启动程序

  1. apache-activemq-5.15.9\bin\win64\activemq.bat

启动成功

  1. wrapper | --> Wrapper Started as Console
  2. wrapper | Launching a JVM...
  3. jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
  4. jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
  5. jvm 1 |
  6. jvm 1 | Java Runtime: Oracle Corporation 1.8.0_201 D:\install\jdk1.8.0_201\jre
  7. jvm 1 | Heap sizes: current=251392k free=235662k max=932352k
  8. 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=rhF1iwTBKUH2BWbG -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=2504 -Dwrapper.version=3.2.3 -Dwrapper.native_library=wrapper -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1
  9. jvm 1 | Extensions classpath:
  10. jvm 1 | [..\..\lib,..\..\lib\camel,..\..\lib\optional,..\..\lib\web,..\..\lib\extra]
  11. jvm 1 | ACTIVEMQ_HOME: ..\..
  12. jvm 1 | ACTIVEMQ_BASE: ..\..
  13. jvm 1 | ACTIVEMQ_CONF: ..\..\conf
  14. jvm 1 | ACTIVEMQ_DATA: ..\..\data
  15. jvm 1 | Loading message broker from: xbean:activemq.xml
  16. jvm 1 | INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@6eb5925b: startup date [Mon Jul 22 09:07:36 CST 2019]; root of context hierarchy
  17. jvm 1 | INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[D:\install\apache-activemq-5.15.9\bin\win64\..\..\data\kahadb]
  18. jvm 1 | INFO | Page File: ..\..\data\kahadb\db.data. Recovering pageFile free list due to prior unclean shutdown..
  19. jvm 1 | INFO | Page File: ..\..\data\kahadb\db.data. Recovered pageFile free list of size: 0
  20. jvm 1 | INFO | KahaDB is version 6
  21. jvm 1 | INFO | PListStore:[D:\install\apache-activemq-5.15.9\bin\win64\..\..\data\localhost\tmp_storage] started
  22. jvm 1 | INFO | Apache ActiveMQ 5.15.9 (localhost, ID:DESKTOP-6NQQ3AD-63663-1563757657804-0:1) is starting
  23. jvm 1 | INFO | Listening for connections at: tcp://DESKTOP-6NQQ3AD:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600
  24. jvm 1 | INFO | Connector openwire started
  25. jvm 1 | INFO | Listening for connections at: amqp://DESKTOP-6NQQ3AD:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600
  26. jvm 1 | INFO | Connector amqp started
  27. jvm 1 | INFO | Listening for connections at: stomp://DESKTOP-6NQQ3AD:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600
  28. jvm 1 | INFO | Connector stomp started
  29. jvm 1 | INFO | Listening for connections at: mqtt://DESKTOP-6NQQ3AD:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600
  30. jvm 1 | INFO | Connector mqtt started
  31. jvm 1 | INFO | Starting Jetty server
  32. jvm 1 | INFO | Creating Jetty connector
  33. jvm 1 | WARN | ServletContext@o.e.j.s.ServletContextHandler@16a555f8{/,null,STARTING} has uncovered http methods for path: /
  34. jvm 1 | INFO | Listening for connections at ws://DESKTOP-6NQQ3AD:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600
  35. jvm 1 | INFO | Connector ws started
  36. jvm 1 | INFO | Apache ActiveMQ 5.15.9 (localhost, ID:DESKTOP-6NQQ3AD-63663-1563757657804-0:1) started
  37. jvm 1 | INFO | For help or more information please see: http://activemq.apache.org
  38. jvm 1 | INFO | No Spring WebApplicationInitializer types detected on classpath
  39. jvm 1 | INFO | ActiveMQ WebConsole available at http://0.0.0.0:8161/
  40. jvm 1 | INFO | ActiveMQ Jolokia REST API available at http://0.0.0.0:8161/api/jolokia/
  41. jvm 1 | INFO | Initializing Spring FrameworkServlet 'dispatcher'
  42. jvm 1 | INFO | No Spring WebApplicationInitializer types detected on classpath
  43. jvm 1 | INFO | jolokia-agent: Using policy access restrictor classpath:/jolokia-access.xml

打开网站访问

  1. http://127.0.0.1:8161/

java连接

  1. <bean id="targetConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
  2. <property name="brokerURL" value="tcp://192.168.0.186:61616" />
  3. <property name="userName" value="admin" />
  4. <property name="password" value="admin" />
  5. </bean>


关注TinyMeng博客,更多精彩分享,敬请期待!
 

很赞哦! ()