天道酬勤

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

          ActiveMQ之一 --- 安裝ActiveMQ

          Posted on 2011-08-20 02:11 匆匆過客 閱讀(5978) 評論(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"

























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


          網站導航:
           
          主站蜘蛛池模板: 榆社县| 孟州市| 许昌市| 望都县| 容城县| 阳原县| 滨州市| 阿鲁科尔沁旗| 婺源县| 蒙阴县| 巍山| 柳河县| 马边| 广宗县| 灵宝市| 娄底市| 开平市| 喜德县| 安义县| 六安市| 章丘市| 灵寿县| 千阳县| 耒阳市| 安泽县| 安康市| 营口市| 中卫市| 诸暨市| 安塞县| 安庆市| 凤山县| 麦盖提县| 绥棱县| 汉川市| 连南| 繁昌县| 逊克县| 开化县| 和林格尔县| 南部县|