一、设置ActiveMQ的访问密码,以提升ActiveMQ的安全性安全
二、在ActiveMQ的conf目录的activemq.xml中添加帐号密码spa
2.1 添加的代码以下code
<!-- 添加访问ActiveMQ的帐号密码 --> <plugins> <simpleAuthenticationPlugin> <users> <authenticationUser username="zhangsan" password="123" groups="users,admins"/> </users> </simpleAuthenticationPlugin> </plugins>
2.2 添加的位置为:xml
broker节点中, shutdownHooks以后blog