apache activemq 修改密码

一:ActiveMQ使用的是jetty服务器, 打开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="false" />
</bean>

将property name为authenticate的属性value="false" 改为"true"(有的版本已经默认设置为了true)


二:

控制台的登录用户名密码保存在conf/jetty-realm.properties文件中,内容如下:

......

# Defines users that can access the web (console, demo, etc.)
# username: password [,rolename ...]
admin: admin, admin

值得注意的是 用户名和密码的格式是

用户名 : 密码 ,角色名

发布了58 篇原创文章 · 获赞 604 · 访问量 511万+

猜你喜欢

转载自blog.csdn.net/whatday/article/details/104937441