1.下载ActiveMQ
wget http://archive.apache.org/dist/activemq/apache-activemq/5.9.0/apache-activemq-5.9.0-bin.tar.gz
2.安装ActiveMQ
解压文件apache-activemq-5.9.0-bin.tar.gz.tar.gz
tar -xzf apache-activemq-5.9.0-bin.tar.gz.tar.gz
3.启动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.开放端口
修改文件/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 ACCEPT
重启防火墙
[root@localhost linux-x86-64]# service iptables restart