博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
activemq安全设置 设置admin的用户名和密码
阅读量:6658 次
发布时间:2019-06-25

本文共 1462 字,大约阅读时间需要 4 分钟。

ActiveMQ使用的是jetty服务器, 打开conf/jetty.xml文件,找到

 

<bean id="securityConstraint" class="org.eclipse.jetty.http.security.Constraint">

        <property name="name" value="BASIC" />
        <property name="roles" value="admin" />
        <property name="authenticate" value="false" />
</bean>

 

 

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

控制台的登录用户名密码保存在conf/jetty-realm.properties文件中,内容如下:

 

## ---------------------------------------------------------------------------

## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements.  See the NOTICE file distributed with
## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with
## the License.  You may obtain a copy of the License at
## 
## http://www.apache.org/licenses/LICENSE-2.0
## 
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## ---------------------------------------------------------------------------
# Defines users that can access the web (console, demo, etc.)
# username: password [,rolename ...]
admin: admin, admin

 

值得注意的是 用户名和密码的格式是

用户名 : 密码 ,角色名

转载地址:http://uijto.baihongyu.com/

你可能感兴趣的文章
sharepointWebPart开发、部署、发布过程全记录
查看>>
Oracle 新增删除账户
查看>>
andorid 网格视图GridView
查看>>
龙创科技公众号支付
查看>>
Linux学习
查看>>
pythonGUI编程打开默认浏览器
查看>>
5200 fqy的难题----2的疯狂幂
查看>>
java运行jar命令提示没有主清单属性
查看>>
apache基本安装配置
查看>>
C++ 数组指针
查看>>
几何画板中绘制过圆上点的切线的技巧
查看>>
ABBYY FineReader 12中的用户模式你会用吗
查看>>
ElasticSearch的各种服务的URL
查看>>
Alpha 冲刺报告(5/10)
查看>>
HTML5 应用程序缓存
查看>>
jmeter 跨线程组调用变量
查看>>
Linux运维-Rsync+Inotify
查看>>
51nod 最大子矩阵和(动态规划)
查看>>
JS模块与命名空间的介绍二
查看>>
C#中的委托(一)
查看>>