zoukankan      html  css  js  c++  java
  • 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
     
  • 相关阅读:
    Oracle数据库五种约束
    Oracle中sql的基本使用
    暮光之城》剧本
    英语电影剧本大全(中英对照)
    加勒比海盗1英文剧本
    公主日记英文剧本
    教父2-英文版
    <老友记>学习笔记
    霍夫变换Hough
    景深(Depth of Field)
  • 原文地址:https://www.cnblogs.com/fenglan/p/5997207.html
Copyright © 2011-2022 走看看