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
    查看全文
  • 相关阅读:
    model.object对象查询过滤、增删改、Q
    模板中的标签、过滤器
    模板(template)包含与继承
    url用法
    AD用户登录验证,遍历OU(LDAP)
    Python下操作sqlite3
    多线程应用-类(thread)
    数组(list)分组、分段
    多线程应用-函数方式(thread)
    IntelliJ IDEA maven项目 ***
  • 原文地址:https://www.cnblogs.com/guochunyi/p/5227947.html
  • 最新文章
  • Android -BLE蓝牙小DEMO
    CRNN中英文字符识别
    基于spring-boot的社区社交微信小程序,适合做脚手架、二次开发
    Node.js 使用JWT进行用户认证
    node:爬虫爬取网页图片
    中文识别数据集生成脚本
    物联网通信
    基于Scrapy框架的Python新闻爬虫
    基于Python Tornado的在线问答系统
    Python 傅里叶分析
  • 热门文章
  • scikit-learn 学习笔记-- Generalized Linear Models (二)
    tensorflow中协调器 tf.train.Coordinator 和入队线程启动器 tf.train.start_queue_runners
    tensorflow中 tf.train.slice_input_producer 和 tf.train.batch 函数
    tensorflow中tensor的静态维度和动态维度
    tf.device()指定tensorflow运行的GPU或CPU设备
    tf.cast()数据类型转换
    小谈python装饰器及numba的基本使用
    专业软件 —— 硬件评测
    专业软件 —— Adobe Audition
    外键应用(foreignkey)、多对多
Copyright © 2011-2022 走看看