当前位置: 首页 > news >正文

activemq安全设置 设置admin的用户名和密码

为什么80%的码农都做不了架构师?>>>   hot3.png

1. 找到配置目录下: /conf/jetty.xml

 28     <bean id="securityConstraint" class="org.eclipse.jetty.http.security.Constraint">
 29         <property name="name" value="BASIC" />
 30         <property name="roles" value="admin" />
 31         <property name="authenticate" value="false" />
 32     </bean>

将配置项【authenticate】值改为 true

2. 修改配置文件 jetty-realm.properties:

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

操着上面配置第20行,【用户名】:【密码】:【角色名】

转载于:https://my.oschina.net/Cosco/blog/745048

相关文章:

  • 全局CSS设置
  • 1分钟导出MySQL的数据字典
  • 1060. 爱丁顿数(25)
  • struts理解
  • win10 中xshell输入中文显示问号问题
  • java 面试每日一题
  • 图片或文字水印
  • Python自动化运维之28、Django(二)
  • Windows Form调用R进行绘图并显示
  • python的内存管理机制
  • Linux/Unix shell 监控Oracle告警日志(monitor alter log file)
  • 配置tomcat连接器后,启动服务报错“No Certificate file specified or invalid file format异常...
  • ajax实例1
  • 一个基于 EasyUI 的前台架构(3)封装操作Tabs的JS代码
  • 对于动态生成的html元素绑定$(document).click()在 iphone上失效
  • SegmentFault for Android 3.0 发布
  • Github访问慢解决办法
  • laravel with 查询列表限制条数
  • laravel 用artisan创建自己的模板
  • linux安装openssl、swoole等扩展的具体步骤
  • Linux下的乱码问题
  • Median of Two Sorted Arrays
  • Python_网络编程
  • Redis 懒删除(lazy free)简史
  • springboot_database项目介绍
  • SpringCloud集成分布式事务LCN (一)
  • SQLServer插入数据
  • SQLServer之索引简介
  • 百度小程序遇到的问题
  • 理解在java “”i=i++;”所发生的事情
  • 视频flv转mp4最快的几种方法(就是不用格式工厂)
  • 微信小程序--------语音识别(前端自己也能玩)
  • 我从编程教室毕业
  • 详解移动APP与web APP的区别
  • 移动端 h5开发相关内容总结(三)
  • 完善智慧办公建设,小熊U租获京东数千万元A+轮融资 ...
  • # 20155222 2016-2017-2 《Java程序设计》第5周学习总结
  • (Bean工厂的后处理器入门)学习Spring的第七天
  • (html5)在移动端input输入搜索项后 输入法下面为什么不想百度那样出现前往? 而我的出现的是换行...
  • (MATLAB)第五章-矩阵运算
  • (六)激光线扫描-三维重建
  • (每日持续更新)jdk api之FileReader基础、应用、实战
  • (五)大数据实战——使用模板虚拟机实现hadoop集群虚拟机克隆及网络相关配置
  • (转)Mysql的优化设置
  • (转载)深入super,看Python如何解决钻石继承难题
  • .bat批处理(十):从路径字符串中截取盘符、文件名、后缀名等信息
  • .mkp勒索病毒解密方法|勒索病毒解决|勒索病毒恢复|数据库修复
  • .net CHARTING图表控件下载地址
  • .NET core 自定义过滤器 Filter 实现webapi RestFul 统一接口数据返回格式
  • .NET Standard / dotnet-core / net472 —— .NET 究竟应该如何大小写?
  • .NET 中什么样的类是可使用 await 异步等待的?
  • .NET3.5下用Lambda简化跨线程访问窗体控件,避免繁复的delegate,Invoke(转)
  • .net连接oracle数据库
  • .Net中ListT 泛型转成DataTable、DataSet
  • ::什么意思