Active MQ

  • 1077
  • 0

摘要:Active MQ

There are 2 popular open-source Message Quene, one is AvtiveMQ the other is Rabbit Queue.
Here is recorded how to intall ActiveMQ.


System Environment:  [lsb_release -a]
Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid
 

Prestep: Change to Root permission [su]
 

Install Step:
1. Intall java SE: 
[apt-get install sun-java6-jdk]


2.Install ANT
[apt-get install ant]


3.Verify
[Java -version]
[Ant -version]
 

4.Setting System Environment Variable [vim /etc/profile]
Insert:[a]
export JAVA_HOME=/usr/lib/jvm/java-6-sun
export ANT_HOME=/usr/share/ant
Save[:wq]
 

5.Download ActiveMQ:
[api-get http://ftp.twaren.net/Unix/Web/apache/activemq/apache-activemq/5.6.0/apache-activemq-5.6.0-bin.tar.gz]
 

6. Decompress
[tar -xzvf apache-activemq-5.6.0-bin.tar.gz]
 

7. StartUp ActiveMQ
[cd apache-activemq-5.6.0]
[bin/activemq console]
 

8. Create connecting: New Terminal to host to connecting to ActiveMQ
[cd example]
[ant consumer]
 

9. Create client: New Terminal to send 2000 * message
[ant producer]
 

10.Down, Check the result