zoukankan      html  css  js  c++  java
  • activemq 学习系列(二) 常用配置

    ActiveMq 主要配置文件

    1、设置登录账号和密码

    找到  conf/jetty.xml 文件

        <bean id="securityConstraint" class="org.eclipse.jetty.util.security.Constraint">
            <property name="name" value="BASIC" />
            <property name="roles" value="user,admin" />
            <!-- set authenticate=false to disable login -->
            <property name="authenticate" value="false" />
        </bean>

    将property name为authenticate的属性value="false" 改为"true".

    在  conf/jetty-realm.properties 文件中

    # Defines users that can access the web (console, demo, etc.)
    # username: password [,rolename ...]
    admin: admin, admin
    user: user, user

    设置账号和密码:格式为  用户名:密码,角色

    2、后台管理端口

    conf/jetty.xml

    <bean id="jettyPort" class="org.apache.activemq.web.WebConsolePort" init-method="start">
                 <!-- the default port number for the web console -->
            <property name="host" value="0.0.0.0"/>
            <property name="port" value="8161"/>
        </bean>

    3、持久化方式

    conf/activemq.xml

    <persistenceAdapter>
                <kahaDB directory="${activemq.data}/kahadb"/>
            </persistenceAdapter>
  • 相关阅读:
    HTTP响应状态码
    跨域
    第一章-极限与函数
    离群点检测
    关联规则(初识)
    python分类预测模型的特点
    分类预测算法评价(初识)
    人工神经网络(初识)
    决策树(初识)
    挖掘建模
  • 原文地址:https://www.cnblogs.com/bmw320li/p/10002192.html
Copyright © 2011-2022 走看看