web控制台安全
# username: password [,rolename ...]
admin: admin, admin
user: user, user
yiming: 123, user
用户名:密码,角色
注意: 配置需重启ActiveMQ才会生效。
消息安全机制
修改 activemq.xml
在123行 节点中添加
<plugins>
<simpleAuthenticationPlugin>
<users>
<authenticationUser username="admin" password="admin" groups="admins,publishers,consumers"/>
<authenticationUser username="publisher" password="publisher" groups="publishers,consumers"/>
<authenticationUser username="consumer" password="consumer" groups="consumers"/>
<authenticationUser username="guest" password="guest" groups="guests"/>
</users>
</simpleAuthenticationPlugin>
</plugins>