CentOS6.5下安装ActiveMQ

1.下载ActiveMQ

  1. [root@localhost softwares]# 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

[sql] view plain copy
 
  1. [root@localhost softwares]# tar -xzf apache-activemq-5.9.0-bin.tar.gz.tar.gz  

3.启动ActiveMQ

[sql] view plain copy
 
  1. [root@localhost softwares]# cd apache-activemq-5.9.0/bin/linux-x86-64/  
  2. [root@localhost linux-x86-64]# ./activemq start  
  3. Starting ActiveMQ Broker...  

4.开放端口

修改文件/etc/sysconfig/iptables

[sql] view plain copy
 
  1. [root@localhost linux-x86-64]# vi + /etc/sysconfig/iptables   
  2. #添加下面两行  
  3. -A INPUT -m state --state NEW -m tcp -p tcp --dport 8161 -j  ACCEPT   
  4. -A INPUT -m state --state NEW -m tcp -p tcp --dport 61616 -j  ACCEPT  

重启防火墙

[sql] view plain copy
 
  1. [root@localhost linux-x86-64]# service iptables restart    

5.验证安装
http://192.168.74.128:8161/admin/index.jsp

用户名:admin
密码:admin

原文地址:https://www.cnblogs.com/jtlgb/p/5809146.html