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& wireformat.maxframesize=104857600 "/><transportconnector name=" AMQP "uri=" amqp://0.0.0.0:5672? maximumconnections=1000&wireformat.maxframesize=104857600 "/><transportconnector name=" Stomp "uri=" stomp://0.0.0.0:61613?maximumconnections=1000&wireformat.maxframesize=104857600 "/>< Transportconnector name= "Mqtt" uri= "mqtt://0.0.0.0:1883?maximumconnections=1000&wireformat.maxframesize= 104857600 "/><transportconnector name=" ws "Uri=" ws://0.0.0.0:61614?maximumconnections=1000& 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?