设置activeMQ的访问密码

1、设置ActiveMQ的访问密码,以提高ActiveMQ的安全性

2、在ActiveMQ的conf目录的activemq.xml中添加账号密码

2.1  添加的代码如下

  
            <plugins>  
                <simpleAuthenticationPlugin>  
                    <users>  
                        <authenticationUser username="zhangsan" password="123" groups="users,admins"/>  
                    users>  
                simpleAuthenticationPlugin>  
            plugins>  

2.2 添加的位置为:

broker节点中, shutdownHooks之后

转载于:https://www.cnblogs.com/jonath/p/6194642.html

你可能感兴趣的:(设置activeMQ的访问密码)