centos 安装apache activemq

给你一囗甜甜゛ 提交于 2020-03-22 00:00:41

安装说明

安装环境: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 onchkconfig --list activemq也可以正常用服务的命令启动和停止service activemq startservice activemq statusservice activemq stop
 
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!