为ActiveMQ服务器设置安全验证
来源:互联网 发布:网络打印机共享器 编辑:程序博客网 时间:2024/05/19 18:17
ActiveMQ下载默认不开启安全验证,级访问服务器不需要输入用户名、密码,如何开启安全验证:
1、ActiveMQ使用的是jetty服务器,服务器的安全开关配置在conf/jetty.xml配置文件中要开启安全验证只需修改authenticate的值为true,及修改如下代码 name="authenticate" 的value为true即可
<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>
2、登录用户名和密码保存在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权限。如需修改用户名、密码、角色,对应修改上面的三个值即可
- 为ActiveMQ服务器设置安全验证
- 为ActiveMQ服务器设置安全验证
- 为ActiveMQ服务器添加简单验证机制
- activemq安全设置
- activemq安全设置
- activeMq 开启服务器验证
- activemq 管理界面安全设置
- 以MDaemon为例解释邮件服务器的安全设置
- ActiveMQ 安全设置----设置安全认证账户和密码
- windows服务器安全设置
- WINDOWS服务器安全设置
- 《win2003服务器安全设置》
- WINDOWS服务器安全设置
- WINDOWS服务器安全设置
- 服务器IIS安全设置
- windows服务器安全设置
- 服务器安全设置
- 服务器安全设置
- frameworks/base/Android.mk:135: *** commands commence before first target. Stop.
- java网站建设7-前言?
- MATLAB 主要函数指令表(十六)
- MATLAB 主要函数指令表(十七)
- MATLAB 主要函数指令表(十八)
- 为ActiveMQ服务器设置安全验证
- MATLAB 主要函数指令表(十九)
- MATLAB 主要函数指令表(二十)
- iOS开发之内存缓存机制 .
- MATLAB 主要函数指令表(二十一)
- MATLAB 主要函数指令表(二十二)
- [转]Linux是“不怕”病毒,不是Linux“没有”病毒
- MATLAB 主要函数指令表(二十三)
- <option value="${c.id }">${c.name }</option>