码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS6.5下安装ActiveMQ

时间:2016-08-26 10:18:11      阅读:698      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!