[ActiveMQ]修改默认密码

简介: ActiveMQ使用的是jetty服务器, 在ActiveMQ目录下的conf/jetty.xml文件,vim打开 将property name为authenti...

ActiveMQ使用的是jetty服务器, 在ActiveMQ目录下的conf/jetty.xml文件,vim打开

<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”(现在的版本默认一般为true,然后默认账号密码都是admin),
控制台的登录用户名密码保存在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

设置的格式就是这样:
admin:admin, admin
用户名 : 密码 ,角色名

例如:
我要一个账号为master_admin,密码为123456的admin角色账号
master_admin:123456,admin

目录
相关文章
|
1月前
|
NoSQL 安全 Redis
深入了解Redis:配置文件、动态修改和安全设置
深入了解Redis:配置文件、动态修改和安全设置
|
2月前
|
网络安全 Nacos 数据安全/隐私保护
nacos常见问题之使用默认用户名密码提示错误如何解决
Nacos是阿里云开源的服务发现和配置管理平台,用于构建动态微服务应用架构;本汇总针对Nacos在实际应用中用户常遇到的问题进行了归纳和解答,旨在帮助开发者和运维人员高效解决使用Nacos时的各类疑难杂症。
|
安全 大数据 数据安全/隐私保护
ambari 提高安全性--修改默认访问端口,admin密码
ambari 提高安全性--修改默认访问端口,admin密码
375 0
ambari 提高安全性--修改默认访问端口,admin密码
|
3月前
|
数据安全/隐私保护
2012及其以上系统修改服务器密码指南
2012及其以上系统修改服务器密码指南
|
6月前
|
NoSQL Redis 数据安全/隐私保护
Redis Cluster设置密码修改密码
Redis Cluster设置密码修改密码
|
8月前
|
网络安全 数据安全/隐私保护
wsl默认root密码修改及默认root登录
wsl默认root密码修改及默认root登录
2029 0
|
jenkins Java 持续交付
Jenkins - 默认用户名和密码及启动方法
Jenkins - 默认用户名和密码及启动方法
5469 0
|
XML 数据安全/隐私保护 数据格式
FreeSwitch中怎样修改主叫显示名称和修改注册用户密码?
FreeSwitch中怎样修改主叫显示名称和修改注册用户密码?
|
关系型数据库 MySQL 数据库
WAMP中的MySQL设置密码(默认密码为空)
WAMP中的MySQL设置密码(默认密码为空)
437 0
WAMP中的MySQL设置密码(默认密码为空)