
- Apache ActiveMQ 教程
- Apache ActiveMQ - 首頁
- Apache ActiveMQ - 概述
- Apache ActiveMQ - 環境設定
- Apache ActiveMQ - 功能
- Apache ActiveMQ - 執行代理伺服器
- Apache ActiveMQ - 管理控制檯
- 基於 Apache ActiveMQ 佇列的示例
- Apache ActiveMQ - 生產者應用程式
- Apache ActiveMQ - 消費者應用程式
- Apache ActiveMQ - 測試應用程式
- 基於 Apache ActiveMQ 主題的示例
- Apache ActiveMQ - 釋出者應用程式
- Apache ActiveMQ - 訂閱者應用程式
- Apache ActiveMQ - 測試應用程式
- Apache ActiveMQ 有用資源
- Apache ActiveMQ - 快速指南
- Apache ActiveMQ - 有用資源
- Apache ActiveMQ - 討論
Apache ActiveMQ - 執行代理伺服器
已下載 ActiveMQ 最新版本(如 ActiveMQ - 環境設定 中所述)。現在,轉到資料夾 F:/ → Apache → apache-activemq-5.16.4/bin 並鍵入以下命令。
示例
F:\Apache\apache-activemq-5.16.4\bin>activemq start
輸出
將看到類似輸出,並且 ActiveMQ 將開始執行。
Java Runtime: Oracle Corporation 11.0.11 C:\Program Files\Java\jdk-11.0.11 Heap sizes: current=1048576k free=1041918k max=1048576k JVM args: -Dcom.sun.management.jmxremote -Xms1G -Xmx1G -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=F:\Apache\apache-activemq-5.16.4\bin\..\conf\login.config -Dactivemq.classpath=F:\Apache\apache-activemq-5.16.4\bin\..\conf;F:\Apache\apache-activemq-5.16.4\bin\../conf;F:\Apache\apache-activemq-5.16.4\bin\../conf; -Dactivemq.home=F:\Apache\apache-activemq-5.16.4\bin\.. -Dactivemq.base=F:\Apache\apache-activemq-5.16.4\bin\.. -Dactivemq.conf=F:\Apache\apache-activemq-5.16.4\bin\..\conf -Dactivemq.data=F:\Apache\apache-activemq-5.16.4\bin\..\data -Djava.io.tmpdir=F:\Apache\apache-activemq-5.16.4\bin\..\data\tmp Extensions classpath: [F:\Apache\apache-activemq-5.16.4\bin\..\lib,F:\Apache\apache-activemq-5.16.4\bin\..\lib\camel,F:\Apache\apache-activemq-5.16.4\bin\..\lib\optional,F:\Apache\apache-activemq-5.16.4\bin\..\lib\web,F:\Apache\apache-activemq-5.16.4\bin\..\lib\extra] ACTIVEMQ_HOME: F:\Apache\apache-activemq-5.16.4\bin\.. ACTIVEMQ_BASE: F:\Apache\apache-activemq-5.16.4\bin\.. ACTIVEMQ_CONF: F:\Apache\apache-activemq-5.16.4\bin\..\conf ACTIVEMQ_DATA: F:\Apache\apache-activemq-5.16.4\bin\..\data Loading message broker from: xbean:activemq.xml INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@53fe15ff: startup date [Sat Feb 26 12:50:18 IST 2022]; root of context hierarchy INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[F:\Apache\apache-activemq-5.16.4\bin\..\data\kahadb] INFO | PListStore:[F:\Apache\apache-activemq-5.16.4\bin\..\data\localhost\tmp_storage] started INFO | Apache ActiveMQ 5.16.4 (localhost, ID:DESKTOP-86KD9FC-52669-1645860020983-0:1) is starting INFO | Listening for connections at: tcp://DESKTOP-86KD9FC:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600 INFO | Connector openwire started INFO | Listening for connections at: amqp://DESKTOP-86KD9FC:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600 INFO | Connector amqp started INFO | Listening for connections at: stomp://DESKTOP-86KD9FC:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600 INFO | Connector stomp started INFO | Listening for connections at: mqtt://DESKTOP-86KD9FC:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600 INFO | Connector mqtt started INFO | Starting Jetty server INFO | Creating Jetty connector WARN | ServletContext@o.e.j.s.ServletContextHandler@4f966719{/,null,STARTING} has uncovered http methods for path: / INFO | Listening for connections at ws://DESKTOP-86KD9FC:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600 INFO | Connector ws started INFO | Apache ActiveMQ 5.16.4 (localhost, ID:DESKTOP-86KD9FC-52669-1645860020983-0:1) started INFO | For help or more information please see: http://activemq.apache.org INFO | ActiveMQ WebConsole available at http://127.0.0.1:8161/ INFO | ActiveMQ Jolokia REST API available at http://127.0.0.1:8161/api/jolokia/
驗證
現在在瀏覽器中開啟 http://127.0.0.1:8161/admin/。它將要求提供憑據。使用 admin/admin 作為使用者名稱/密碼,它將載入 ActiveMQ 管理控制檯,你可以在其中檢視佇列、主題、連線等。

廣告