Skip to content

Latest commit

 

History

History
executable file
·
20 lines (18 loc) · 798 Bytes

activemq.md

File metadata and controls

executable file
·
20 lines (18 loc) · 798 Bytes

Start in Linux

Set password

  • ActiveMQ使用的是jetty服务器,设置密码时需要先将authenticate设置为true。在 {apache-activemq}/conf/jetty.xml文件中
<bean id="securityConstraint" class="org.eclipse.jetty.http.security.Constraint">
        <property name="name" value="BASIC" />
        <property name="roles" value="admin" />
        <property name="authenticate" value="true" />
</bean>
  • 修改登陆的用户名和密码保护,在{apache-activemq}/conf/jetty-realm.properties文件中
# Defines users that can access the web (console, demo, etc.)
# username: password [,rolename ...]
admin: admin, admin