How to configure security of ActiveMQ?

Source: Internet
Author: User
Tags stomp

Terms

{Activemq.home}: the ACTIVEMQ installation folder.

How to configure ActiveMQ to use JAAS authentication? Enable Jaas Authentication Plugin

ADD below configuration into {activemq.home}\conf\activemq.xml, under/beans/broker node.

Ignore this step, if already there.

<plugins> <jaasauthenticationplugin xmlns= "Http://activemq.apache.org/schema/core" configuration= " Activemq-domain "/>     </plugins>

Configure Activemq-domin

Configure the login required in {Activemq.home}\conf\login.config file, please pay attention the domain name should match With the name in the Activemq.xml file.

Activemq-domain {    Org.apache.activemq.jaas.PropertiesLoginModule required        Org.apache.activemq.jaas.properties.user= "Users.properties"        org.apache.activemq.jaas.properties.group= " Groups.properties ";};

ADD User

Configure the user and password in {activemq.home}\conf\users.properties.

Mqadmin=passwordmquser=password

ADD User Group

Configure the user group in {activemq.home}\conf\groups.properties.

Admins=mqadminusers=mquser
Reboot ActiveMQ

Reboot the ActiveMQ server.

How to change the default port of ActiveMQ? Configure the ActiveMQ ports

Go to the element of/beans/broker/transportconnectors, update the ports of below.

<transportConnectors><!--DOS Protection, limit concurrent connections to $ and frame size to 100MB-->< Transportconnector name= "Openwire" uri= "tcp://0.0.0.0:61616?maximumconnections=1000&amp; wireformat.maxframesize=104857600 "/><transportconnector name=" AMQP "uri=" amqp://0.0.0.0:5672? maximumconnections=1000&amp;wireformat.maxframesize=104857600 "/><transportconnector name=" Stomp "uri=" stomp://0.0.0.0:61613?maximumconnections=1000&amp;wireformat.maxframesize=104857600 "/>< Transportconnector name= "Mqtt" uri= "mqtt://0.0.0.0:1883?maximumconnections=1000&amp;wireformat.maxframesize= 104857600 "/><transportconnector name=" ws "Uri=" ws://0.0.0.0:61614?maximumconnections=1000&amp; wireformat.maxframesize=104857600 "/></transportconnectors>

How to change the Username/password of ActiveMQ Admin Console? Configure the user name and password

Update the user name, password and roles information in {activemq.home}\conf\jetty-ream.properties. By the format, Username:password [, rolename ...]

Mqadmin:xckj_mqadmin, Adminmquser:xckj_mquser, user

How to configure security of ActiveMQ?

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.