1, ACTIVEMQ Management background user name, password settings
Manage background address http://localhost:8161/admin Default User name Password Admin admin
The port defaults to 8161, and the service uses the server, so we go into the Conf/jetty.xml
(1) Modify the port number:
class= "Org.apache.activemq.web.WebConsolePort" init-method= "Start" > defaultfor the Web console-- <property name= "host" value= "0.0.0.0"/> <property name= "Port" value= " 8161"/> </bean>
(2) in the change of user name and password (user name changed to parry, password changed to parry123)
# Username:password [, rolename ...] Note Here's the hint: Username: password, role
parry:parry123, Adminuser:user, user
After setting up the restart, you can try the new password if it is set successfully.
2. Set the user name and password for consumer connection Activemq
There are a variety of configuration options, detailed reference: http://activemq.apache.org/security.html
If we do not set the ACTIVEMQ security mechanism, anyone who knows the IP, port, and message address of our ACTIVEMQ service can accept and send messages.
Configuring the simplest configuration here, add the following to the broker tag of the Conf/activemq.xml file:
<plugins> <simpleAuthenticationPlugin> <users> <authenticationuser username= " Parry "password=" parry123 "groups=" Users,admins "/> </users> </simpleAuthenticationPlugin> </plugins>
Set up restart activemq!
ACTIVEMQ Security Configuration