zoukankan      html  css  js  c++  java
  • activemq 消息队列服务器

    ActiveMQ 安装配置

    更多 

    安装

    1. 前置条件:1)安装JDK;2)配置 JAVA_HOME 环境变量,确保 echo $JAVA_HOME 输出JDK的安装路径
    2. 下载:
      wget http://www.apache.org/dyn/closer.cgi?path=/activemq/5.13.1/apache-activemq-5.13.1-bin.tar.gz
    3. tar zxvf apache-activemq-5.13.1-bin.tar.gz
    4. cd [activemq_install_dir]/bin
      chmod 755 activemq
    5. 启动: ./activemq start
    6. 停止:./activemq stop

    配置

      以下以[activemq_install_dir]为activemq的安装目录
    
       #### 配置Broker的连接用户名密码
                1. vi /conf/activemq.xml
                 在broker中添加
                             <plugins>
              <!-- Configure authentication; Username, passwords and groups 添加jaas认证插件 activemq-domain 在login.config里面定义,详细见login.config -->
              <jaasAuthenticationPlugin configuration="activemq" />
    
              <!--  Lets configure a destination based authorization mechanism 配置队列用户权限,>表示任意字符 -->
              <authorizationPlugin>
                <map>
                  <authorizationMap>
                    <authorizationEntries>
                      <authorizationEntry queue=">" read="XXXX" write="XXXX" admin="admins,XXXX" />
    
                      <authorizationEntry topic=">" read="admins" write="admins" admin="admins" />
    
                      <!-- 创建destination的权限  -->
                      <authorizationEntry topic=">" read="XXXX" write="XXXX" admin="XXXX,admins"/>
                    </authorizationEntries>
                  </authorizationMap>
                </map>
              </authorizationPlugin>
        </plugins>
                 2.  vi /conf/groups.properties
                      添加 XXXX=XXXX
                      等号左边是分组,右边是用户
                 3. vi /conf/users.properties
                       添加XXXX=local-XXXX
                       等号左边是用户,右边是密码

    windows启动mq。用管理员模式运行bin-win64-activemq.bat和installservice或者单独运行wrapper.exe
    如果发生运行错误,可以看控制台输出日志解决错误。可能出现端口被占用等错误。
    服务器验证:localhost:8161
    查看全文
  • 相关阅读:
    EcFinal游记
    简要介绍补码的原理
    【SCOI2007】降雨量
    【ecfinal2019热身赛】B题
    【HAOI2011】problem a
    20200301(ABC)题解 by李旭晨
    20200228(ABC)题解 by 马鸿儒
    20200220(C)题解 b刘存
    20200225(DEF)题解 by 马鸿儒
    20200224(ABC)题解 by 马鸿儒
  • 原文地址:https://www.cnblogs.com/guochunyi/p/5227947.html
  • 最新文章
  • poj2752Seek the Name, Seek the Fame(next数组)
    unique(去重函数)
    hdu3438 Buy and Resell(优先队列+贪心)
    牛客网练习赛 2 烟花(概率dp)
    poj1285 Combinations, Once Again(泛化背包)
    2017-2018 ACM-ICPC German Collegiate Programming Contest (GCPC 2017)
    hdu3068 最长回文 马拉车模板题
    2018 ICPC Asia Jakarta Regional Contest
    codeforces833B The Bakery
    2017-2018 ACM-ICPC, Asia Tsukuba Regional Contest
  • 热门文章
  • bzoj1004 [HNOI2008]Cards Burnside定理+背包
    bzoj 1005: [HNOI2008]明明的烦恼 树的prufer序列+万进制
    bzoj3196 二逼平衡树 树状数组套线段树
    bzoj2212 Tree Rotations 线段树合并+动态开点
    hdu6183 Color it 线段树动态开点+查询减枝
    【洛谷1363】幻象迷宫
    【洛谷1338】末日的传说
    【洛谷1582】倒水
    【USACO13JAN】牛的阵容Cow Lineup
    【洛谷1030】求先序遍历
Copyright © 2011-2022 走看看