天道酬勤

          點點滴滴的足跡,幻化成漫天的云彩
          posts - 22, comments - 0, trackbacks - 0, articles - 2
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          ActiveMQ之一 --- 安裝ActiveMQ

          Posted on 2011-08-20 02:11 匆匆過客 閱讀(5977) 評論(0)  編輯  收藏 所屬分類: App Server
          一、安裝
          1. 從activemq.apache.org下載最新版本的ActiveMQ 二進制壓縮文件apache-activemq-x.x.x-bin.zip(其中x.x.x是ActiveMQ的版本號碼)
          2. 將文件解壓至任一地方即可${ActiveMQ}

          二、啟動
          1. 運行文件夾${ActiveMQ}/bin/activemq.bat。即會輸入類似的如下信息:
          Java Runtime: Sun Microsystems Inc. 1.6.0_20 D:\Java\jdk1.6.0_20\jre
            Heap sizes: current
          =15872k  free=13396k  max=506816k
              JVM args: -Dcom.sun.management.jmxremote -Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner
          =true -Djava.util.logging.config.file=logging.properties -Dactivemq.classpath=D:\Java\apache-activemq-5.5.0\bin\../conf;D:\Java\apache-activemq-5.5.0\bin\../conf; -Dactivemq.home=D:\Java\apache-activemq-5.5.0\bin\.. -Dactivemq.base=D:\Java\apache-activemq-5.5.0\bin\..
          ACTIVEMQ_HOME: D:\Java\apache-activemq-5.5.0\bin\..
          ACTIVEMQ_BASE: D:\Java\apache-activemq-
          5.5.0\bin\..
          Loading message broker from: xbean:activemq.xml
           INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$
          1@bb7465: startup date [Sat Aug 20 01:58:38 CST 2011]; root of context hierarchy
           WARN | destroyApplicationContextOnStop parameter is deprecated, please use shutdown hooks instead
           INFO | PListStore:D:\Java\apache-activemq-
          5.5.0\bin\..\data\localhost\tmp_storage started
           INFO | Using Persistence Adapter: KahaDBPersistenceAdapter
          [D:\Java\apache-activemq-5.5.0\bin\..\data\kahadb]
           INFO | KahaDB is version 
          3
           INFO | Recovering from the journal 
           INFO | Recovery replayed 
          1 operations from the journal in 0.016 seconds.
           INFO | ActiveMQ 
          5.5.0 JMS Message Broker (localhost) is starting
           INFO | For help or more information please see: http://activemq.apache.org/
           INFO | Listening for connections at: tcp://PC-
          201012101012:61616
           INFO | Connector openwire Started
           INFO | ActiveMQ JMS Message Broker (localhost
          , ID:PC-201012101012-3784-1313776719906-0:1) started
           INFO | jetty-
          7.1.6.v20100715
           INFO | ActiveMQ WebConsole initialized.
           INFO | Initializing Spring FrameworkServlet 'dispatcher'
           INFO | ActiveMQ Console at http://
          0.0.0.0:8161/admin
           INFO | Initializing Spring root WebApplicationContext
           INFO | OSGi environment not detected.
           INFO | Apache Camel 
          2.7.0 (CamelContext: camel) is starting
           INFO | JMX enabled. Using ManagedManagementStrategy.
           INFO | Found 
          5 packages with 16 @Converter classes to load
           INFO | Loaded 
          152 type converters in 0.593 seconds
           INFO | Connector vm://localhost Started
           INFO | Route: route1 started and consuming from: Endpoint
          [activemq://example.A]
           INFO | Total 
          1 routes, of which 1 is started.
           INFO | Apache Camel 
          2.7.0 (CamelContext: camel) started in 1.062 seconds
           INFO | Camel Console at http://
          0.0.0.0:8161/camel
           INFO | ActiveMQ Web Demos at http://
          0.0.0.0:8161/demo
           INFO | RESTful file access application at http://
          0.0.0.0:8161/fileserver
           INFO | Started SelectChannelConnector@
          0.0.0.0:8161

          三、測試
          1. 因為ActiveMQ內嵌了jetty服務器,所以可以通過如下方式來測試ActiveMQ是否啟動
             管理平臺網址:  http://localhost:8161/admin/
             Demo網址   :  http://localhost:8161/demo/

          2.ActiveMQ默認的TCP端口是61616。所以通過如下命令進行檢查  
          netstat -an|find "61616"
           
          3. ActiveMQ默認的Jetty端口8161。所以可以通過如下命令進行檢查
          netstat -an|find "8161"

























          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 建湖县| 江北区| 延庆县| 广丰县| 衡阳县| 宜宾市| 邯郸市| 新晃| 蕉岭县| 健康| 乌拉特中旗| 承德县| 闽侯县| 商城县| 谢通门县| 龙海市| 罗源县| 柳河县| 曲阜市| 永平县| 静宁县| 富源县| 汉源县| 绥宁县| 调兵山市| 新晃| 旺苍县| 柘城县| 松桃| 剑川县| 东阳市| 金沙县| 深泽县| 宾阳县| 交口县| 崇州市| 同仁县| 桐庐县| 内黄县| 凤冈县| 永德县|