ACTIVEMQ Security Configuration

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.