1. Download ACTIVEMQ
[Root@localhost softwares]# wget http://archive.apache.org/dist/activemq/apache-activemq/5.9.0/ Apache-activemq-5.9.0-bin.tar.gz
2. Install ACTIVEMQ
Extract Files apache-activemq-5.9.0-bin.tar.gz.tar.gz
[Root@localhost softwares]# Tar-xzf apache-activemq-5.9.0-bin.tar.gz.tar.gz
3. Start ACTIVEMQ
[root@localhost softwares]# cd apache-activemq-5.9.0/bin/linux-x86-64/
[root@localhost linux-x86-64]#./ Activemq start
starting activemq Broker ...
4. Open port
Modify File/etc/sysconfig/iptables
[Root@localhost linux-x86-64]# vi +/etc/sysconfig/iptables
#添加下面两行
-A input-m State--state new-m tcp-p TCP- Dport 8161-j ACCEPT
-A input-m State--state new-m tcp-p TCP--dport 61616-j
Reboot firewall
[root@localhost linux-x86-64]# Service iptables restart
5. Verifying installation
http://192.168.74.128:8161/admin/index.jsp
User name: admin
Password: admin