How to configure security of ActiveMQ ?

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.

Please 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=password
mquser=password

Add user group

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

admins=mqadmin
users=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 1000 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, admin
mquser: xckj_mquser, user
时间: 2024-11-07 18:48:00

How to configure security of ActiveMQ ?的相关文章

Configure Security Settings for Remote Desktop(RDP) Services Connections

catalogue 1. Configure Server Authentication and Encryption Levels 2. Configure Network Level Authentication for Remote Desktop Services Connections 3. Configure Client Logon Information for Remote Desktop Services Connections 4. Configure Permission

activemq的安装与使用

一.activemq的安装 环境:CentOS 6.JDK8 1. 确保系统已安装了可用的jdk版本2. 从网上下载 Linux 版的 ActiveMQ( apache-activemq-5.11.1-bin.tar.gz),然后使用xftp上传到linux虚拟机已经建好的文件夹下 3. 解压安装# tar -zxvf apache-activemq-5.11.1-bin.tar.gz# mv apache-activemq-5.11.1 activemq如果启动脚本 activemq 没有可执

Dubbo应用教程--ActiveMQ的安装与使用(单节点)

  IP:192.168.4.101    环境:CentOS 6.6.JDK7 1.  安装JDK并配置环境变量(略) JAVA_HOME=/usr/local/java/jdk1.7.0_72 2.  下载Linux版的ActiveMQ(当前最新版apache-activemq-5.11.1-bin.tar.gz) $ wgethttp://apache.fayea.com/activemq/5.11.1/apache-activemq-5.11.1-bin.tar.gz 3.  解压安装

ActiveMQ 的安装与使用(单节点)

IP: 192.168.10.100 环境:CentOS 6.6.JDK8 1. 安装 JDK 并配置环境变量(略) JAVA_HOME=/opt/jdk1.8.0_111 2. 下载 Linux 版的 ActiveMQ(apache-activemq-5.13.4-bin.tar.gz) cd /usr/local/src  wget https://archive.apache.org/dist/activemq/5.13.4/apache-activemq-5.13.4-bin.tar.g

configure JDBCRealm JAAS for mysql and tomcat 7 with form based authentication--reference

Hello all, In this tutorial we are going to configure JDBCRealm JAAS for tomcat 7 and mysql database server. Let us first understand what exactly these terminologies mean. JAAS : Java Authentication and Authorization Service is used for user authenti

linux学习:安装activemq

1.解压到/opt下,并重命名为activemq [[email protected] tar]# tar -zxvf apache-activemq-5.14.4-bin.tar.gz -C /opt [[email protected] opt]# mv apache-activemq-5.14.4/ activemq 2.如果启动脚本activemq没有可执行权限,需赋权 [[email protected] bin]# cd /opt/activemq/bin/ [[email prot

分布式架构实战--ActiveMQ的安装与使用(单节点)

具体内容请参考样例代码和视频教程: http://www.roncoo.com/course/view/85d6008fe77c4199b0cdd2885eaeee53 IP:192.168.4.101 环境:CentOS 6.6.JDK7 1.  安装JDK并配置环境变量(略) JAVA_HOME=/usr/local/java/jdk1.7.0_72 2.  下载Linux版的ActiveMQ(当前最新版apache-activemq-5.11.1-bin.tar.gz) $ wget ht

Spring boot --- Spring Security(二)

   文章部分图片来自参考资料,这篇文章主要讲 spring security  oauth 概述 上一篇我们学习了 SS 中重要的工作原理和几个大概的认证和授权过程.而 spring security oauth 用到的就是 spring security 知识,我们学习 sso 之前先看一下oauth 是什么,可以学习阮一峰老师的文章 oauth 的流程图如下 : (牢牢记住这张图) 主要的角色有资源持有者,资源服务器,认证服务器,还有用户 授权(获取 Access Token)的方式有多种

消息队列 ActiveMQ详解

一.首先,说一下ActiveMQ在Linux的安装: 1.下载安装包: 下载:apache-activemq-5.14.0-bin.tar.gz 地址:http://activemq.apache.org/activemq-5140-release.html 2.安装到Linux虚拟机上: 1.gz文件拷贝到/usr/local/src目录 2.解压启动: tar -zxvf apache-activemq-5.14.0-bin.tar.gz cd apache-activemq-5.14.0/