ActiveMQ_安全配置(五)
生活随笔
收集整理的這篇文章主要介紹了
ActiveMQ_安全配置(五)
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
參考資料:http://activemq.apache.org/security.html
1、添加訪問(wèn)隊(duì)列的賬號(hào)密碼:conf/activemq.xml
//定義了一個(gè)?wusc?用戶,密碼為?wusc.123,角色為?users,admins(broker節(jié)點(diǎn)下添加)
| 1234567 | <plugins>? ? <simpleAuthenticationPlugin>? ? ? <users>? ? ? ? ? <authenticationUser username="wusc" password="wusc.123" groups="users,admins"/>? ? ??</users>? ? </simpleAuthenticationPlugin></plugins> |
2、設(shè)置控制臺(tái)的賬號(hào)密碼
a) 開(kāi)啟驗(yàn)證選項(xiàng):/conf/jetty.xml
確保?authenticate?的值為?true(默認(rèn))
| 12345 | <bean id="securityConstraint" class="org.eclipse.jetty.util.security.Constraint">? ?<property name="name" value="BASIC" />? ?<property name="roles" value="admin" />? ?<property name="authenticate" value="true" /></bean> |
b) 查看控制臺(tái)賬號(hào)密碼
/conf/jetty-realm.properties
來(lái)自為知筆記(Wiz)
總結(jié)
以上是生活随笔為你收集整理的ActiveMQ_安全配置(五)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: window.open与window.l
- 下一篇: 【Todo】log4j与Slf4j的学习