一、配置登录监视控制台

1,启用登录验证(authenticate属性的值设置为true表示需要登录验证)

e:\apache-activemq-5.14.5\conf\jetty.xml

<bean id="securityConstraint" class="org.eclipse.jetty.util.security.Constraint">
     <property name="name" value="BASIC" />
     <property name="roles" value="user,admin" />
     <!-- set authenticate=false to disable login -->
     <property name="authenticate" value="true" />
</bean>

登录的用户配置在文件 e:\apache-activemq-5.14.5\conf\jetty-realm.properties


2,修改web的访问端口

jetty.xml

<bean id="jettyPort" class="org.apache.activemq.web.WebConsolePort" init-method="start">
      <!-- the default port number for the web console -->
      <property name="host" value="0.0.0.0"/>
      <property name="port" value="8161"/>
</bean>

二 、ActiveMQ的运行日志配置

e:\apache-activemq-5.14.5\conf\log4j.properties

默认存放在data文件夹下的activemq.log中。