Today, my company colleagues asked me to help me install activemq. Activemq is the most popular and powerful open source message bus produced by Apache. Activemq is a JMS Provider implementation that fully supports the JMS1.1 and J2EE 1.4 specifications, although the JMS specification has been in place for a long time. , but JMS still plays a special role in today's J2EE applications.
Environment:
package required for centos 5.x: apache -activemq-5.9.0-bin.tar.gz
1. Download
code show as below | copy code |
wget http://archive.apache.org/dist/activemq/apache-activemq/5.9.0/apache-activemq-5.9.0-bin.tar.gz |
2. Installation preparation
Before installing apache-activemq, you must have a jdk environment installed. You can go to my centos installation jdk 1.6 article.
3. Install activemq
ln -s /usr/local/activemq/bin/activemq /etc/init.d/ vi /etc/init.d/activemq --------------------------------------------- # Insert the second line # chkconfig: 345 63 37 # description: Auto start ActiveMQ
vi /etc/profile
export PATH=/usr/local/activemq/bin:$PATH
source /etc/profile
Then you can add the boot chkconfig activemq on chkconfig --list activemq You can also start and stop the service normally with the command service activemq start service activemq status service activemq stop