安装目录下conf/activemq.xml
添加如下内容:
<plugins>
<simpleAuthenticationPlugin>
<users>
<authenticationUser username="zhangsan" password="123" groups="users,admins"/>
</users>
</simpleAuthenticationPlugin>
</plugins>