首页 > 其他 > 详细

CentOS6.5下安装ActiveMQ

时间:2016-08-26 10:15:43      阅读:252      评论:0      收藏:0      [点我收藏+]

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

技术分享

CentOS6.5下安装ActiveMQ

原文:http://www.cnblogs.com/jtlgb/p/5809146.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!