1.下载ActiveMQ
略
2.安装ActiveMQ
[root@localhost softwares]# 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
5. 重启防火墙
[root@localhost linux-x86-64]# service iptables restart
6.验证安装
http://123.207.16.146:8161/admin/index.jsp
用户名:admin
密码:admin
#7.密码设置