ActiveMQ is using the jetty server , open conf/jetty.xml file to find
<beanid= "Adminsecurityconstraint" class= "Org.eclipse.jetty.util.security.Constraint" > <propertyname= " Name "value=" BASIC "/> <propertyname=" Roles "value=" admin "/> <!--set Authenticate=false to Disablelogin-- > <propertyname= "Authenticate" value= "true"/></bean>
will beProperty Nameto beAuthenticateof the Propertiesvalue= "true"instead"false", Loginhttp://localhost:8161/admin/User name password is not required to enter. Authenticateof the Propertiesvalue= "true", the login username password for the console is saved in theconf/jetty-realm.propertiesin the file,The contents are as follows:
# #---------------------------------------------------------------------------# #Licensed to the apache software foundation (ASF) under one or more# #contributor License agreements. see the notice file distributed with## thiswork for additional information regarding copyright ownership.## TheASF licenses this file to you under the apache license, version 2.0## (the "License"); you may not use this file except in compliance with## thelicense. you may obtain a copy of the license at### #http://www.apache.org/licenses/license-2.0#### unlessrequired by applicable law or agreed to in writing, software# #distributed under the license is distribuTed on an "As is" basis,## withoutwarranties or conditions of any kind, either express or implied.## seethe license for the specific language governing permissions and# #limitations under the license. # #--------------------------------------------------------------------------- # Definesusers that can access the web (console, demo, etc.) #username: password [,rolename  ...] admin:admin, adminuser:user, user notable is the user name and password format is: username : password , role name.
This article is from the "Good Big Knife" blog, please make sure to keep this source http://53cto.blog.51cto.com/9899631/1721374
ACTIVEMQ security Settings-set admin username and password