[root@localhost bin]# cat /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
1.修改配置文件,不需要验证,编辑jetty.xml文件
cd /usr/local/activemq/conf/
vi jetty.xml (property name="authenticate" value="true")改为(property name="authenticate" value="false")
2.添加用户名和密码,在conf目录下找到jetty-realm.properties
vi jetty-realm.properties
# Defines users that can access the web (console, demo, etc.)
# username: password [,rolename ...]
admin: admin, admin (用户名)
user: user, user (密码)