centos 安装apache activemq

安装说明

安装环境:CentOS-6.3
安装方式:源码安装 
软件:apache-tomcat-7.0.29.tar.gz
下载地址http://activemq.apache.org/download.html

 

1、mkdir /usr/apachemq

2、上传apachemq

3、解压apachemq

     tar -xzvf /usr/apachemq/apache-activemq-5.6.0-bin.tar.gz

4、修改activemq运行文件的权限
cd /usr/apachemq/apache-activemq-5.6.2/bin
chmod 755 activemq
运行./activemq
5、关闭防火墙

   vi + /etc/sysconfig/iptables

    1. #添加下面两行  
    2. -A INPUT -m state --state NEW -m tcp -p tcp --dport 8161 -j  ACCEPT   
    3. -A INPUT -m state --state NEW -m tcp -p tcp --dport 61616 -j  ACCEPT

6、重启防火墙

    [root@localhost linux-x86-64]# service iptables restart

7、 启动

     ./apachemq

 

测试地址

http://172.16.87.130:8161/admin/

 

设置开机自启动

 

1、生产软链接到 /etc/init.d/ 下 执行命令:

   ln -s /usr/apachemq/apache-activemq-5.9.0/bin/activemq /etc/init.d/

2、 检查 链接的权限是否有执行权限

      chmod +x /etc/init.d/activemq   

vi /etc/init.d/activemq
---------------------------------------------
# 第二行插入
# chkconfig: 345 63 37
# description: Auto start ActiveMQ
---------------------------------------------
然后就可以添加开机启动了
chkconfig activemq on
chkconfig --list activemq
也可以正常用服务的命令启动和停止
service activemq start
service activemq status
service activemq stop
 

转载于:https://www.cnblogs.com/fenglan/p/5997207.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值