ACTIVEMQ uses the jetty server, opens the Conf/jetty.xml file in the ACTIVEMQ installation directory, and finds
<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>
Change the property name to authenticate value= "false" to "true", and the console's login username password is saved in the Conf/jetty-realm.properties file as follows:
# #---------------------------------------------------------------------------# # Licensed to the Apache Software Foundation (ASF) under one or more # # contributor license agreements.
The NOTICE file distributed with # # work for additional information regarding copyright. # # The ASF licenses this file to you under the Apache License, Version 2.0 # # (the "License"); You are not to use this file except in compliance with # # the License. Obtain a copy of the License at # # # http://www.apache.org/licenses/LICENSE-2.0 # # # unless required by applic Able or agreed to writing, Software # # Distributed under the License is distributed on ' as is ' basis, # # without
Warranties or CONDITIONS of any KIND, either express OR implied.
# # 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
It is worth noting that the format of the username and password is
User name: password, role name