ActiveMQ--windows 安装部署测试监控

2262阅读 0评论2009-07-31 jhluroom
分类:LINUX

1、安装jdk.exe  1.5.0
同时,将D:\Program Files\Java\jdk1.5.0\lib\tools.jar
拷贝到D:\Program Files\Java\jdk1.5.0\jre\lib文件夹下,
拷贝到D:\Program Files\Java\jre1.5.0\lib文件夹下,

2、设置系统变量
JAVA_HOME=D:\Program Files\Java\jdk1.5.0
CLASSPAHT=.;D:\Program Files\Java\jdk1.5.0\lib\tools.jar;D:\Program Files\Java\jdk1.5.0\lib\td.jar;D:\Program Files\Java\jdk1.5.0\lib
PATH=D:\Program Files\Java\jdk1.5.0\bin;

3、安装apache-ant-1.7.1
设置环境变量:
ANT_HOME=E:\ActiveMQ\apache-ant-1.7.1
PATH=E:\ActiveMQ\apache-ant-1.7.1\bin
CMD进入BIN目录后后,输入ANT就可以(可能提示什么失败,没关系,说明运行正确)

4、安装和运行ActiveMQ
到 activemq.apache.org/ 去下载个最新版(我下载的是5.0.0)
E:\ActiveMQ\apache-activemq-5.0.0
1)打开一个CMD,进入E:\ActiveMQ\apache-activemq-5.0.0\bin,运行activemq.bat 或activemq,可以看到以下信息,说明成功启动
ACTIVEMQ_HOME: D:\dev_env\activeMQ\bin\..
ACTIVEMQ_BASE: D:\dev_env\activeMQ\bin\..
Loading message broker from: xbean:activemq.xml
INFO BrokerService                  - Using Persistence Adapter: AMQPersistenceAdapter(D:\dev_env\activeMQ\bin\..\data)
INFO BrokerService                  - ActiveMQ 5.1.0 JMS Message Broker (localhost) is starting
INFO BrokerService                  - For help or more information please see:
INFO AMQPersistenceAdapter          - AMQStore starting using directory: D:\dev_env\activeMQ\bin\..\data
INFO KahaStore                      - Kaha Store using data directory D:\dev_env\activeMQ\bin\..\data\kr-store\state
INFO AMQPersistenceAdapter          - Active data files: []
INFO KahaStore                      - Kaha Store using data directory D:\dev_env\activeMQ\bin\..\data\kr-store\data
INFO TransportServerThreadSupport   - Listening for connections at: tcp://tdfrank-desktop:61616
INFO TransportConnector             - Connector openwire Started
INFO TransportServerThreadSupport   - Listening for connections at: ssl://tdfrank-desktop:61617
INFO TransportConnector             - Connector ssl Started
INFO TransportServerThreadSupport   - Listening for connections at: stomp://tdfrank-desktop:61613
INFO TransportConnector             - Connector stomp Started
INFO TransportServerThreadSupport   - Listening for connections at: xmpp://tdfrank-desktop:61222
INFO TransportConnector             - Connector xmpp Started
INFO NetworkConnector               - Network Connector default-nc Started
INFO BrokerService                  - ActiveMQ JMS Message Broker (localhost, ID:tdfrank-desktop-52040-1220634668576-0:
0) started
INFO log                            - Logging to org.slf4j.impl.JCLLoggerAdapter(org.mortbay.log) via org.mortbay.log.S
lf4jLog
INFO log                            - jetty-6.1.9
INFO WebConsoleStarter              - ActiveMQ WebConsole initialized.
INFO /admin                         - Initializing Spring FrameworkServlet 'dispatcher'
INFO log                            - ActiveMQ Console at
INFO log                            - ActiveMQ Web Demos at
INFO log                            - RESTful file access application at
INFO log                            - Started
INFO FailoverTransport              - Successfully connected to tcp://localhost:61616
2)打开另一个CMD,进入E:\ActiveMQ\apache-activemq-5.0.0\example,运行ant consumer,可以看到相关接受信息
3)打开另一个CMD,进入E:\ActiveMQ\apache-activemq-5.0.0\example,运行ant producer,可以看到相关发送信息

5、退出ActiveMQ:退出activeMQ的话只需在运行 activemq.bat 的那个Cmd窗口按下Ctrl-C即可

6、Monitoring ActiveMQ


 
上一篇:ActiveMQ--CPP客户端示例
下一篇:我万事追求苦尽甘来,但一直解决不了如何先洗碗再享受美餐