-
2009-03-25
ActiveMQ Installation Guide - [ActiveMQ]
版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
http://cnhome.blogbus.com/logs/37006055.html
转自http://wiki.community.objectware.no/display/smidigtonull/ActiveMQ+Installation+Guide
- Using Apache ActiveMQ - overview over available guides
- ActiveMQ Clustering
- failover transport reference
- FUSE Source ActiveMQ Persistence Guide
Install
Install and start with RPM
- Download or build RPM
- Add users and groups
groupadd activemq useradd -g activemq activemq
- Start
sudo /etc/init.d/activemq start
- Stop
sudo /etc/init.d/activemq stop
- Test that the server listens to port 61616
netstat -an|grep 61616
Install and start with tar.gz install
- wget http://www.powertech.no/apache/dist/activemq/apache-activemq/5.2.0/apache-activemq-5.2.0-bin.tar.gz
- tar -xvvzf apache-activemq-5.2.0-bin.tar.gz
- Start
nohup bin/activemq > logs/smlog 2>&1 &
- (use kill to stop)
- Test that the server listens to port 61616
netstat -an|grep 61616
Configuration
We want:
Server side config
- persistent messaging
- kaha store
- tcp transport
- dynamic creation of Destinations
Client side config
failover:(tcp://localhost:61616?wireFormat.tightEncodingEnabled=false)?jms.useAsyncSend=true&jms.copyMessageOnSend=falseRemove unnecessary config from config file
- Remove camel route
- Remove unneeded transports. (See overview over available transports ).
A "OK" working config
See activemq.xml for config.
Optimize performance
FUSE Message Broker Performance Tuning Guide
15:27 < gtully> Sherriff: see: http://activemq.apache.org/activemq-performance-module-users-manual.html for some relevant options that can make a difference, like asyncSend and optimizeAcknowlegement
http://activemq.apache.org/amq-message-store.html
Fix log4j.properties
- put the file in logs instead of in data.
Debugging
Enable debug logging
vim conf/log4j.properties
随机文章:
Spring对ApplicationContext的3种实现 2009-05-04Apache日志的命名管道输出 2009-04-21济南特色之我见(1) 2008-11-20济南形象片 2008-10-12【转】统计上使用的县以下行政区划代码编制规则 2008-09-27
收藏到:Del.icio.us







