Chapter 4. Adding a Remote Console User
Abstract
The server's remote command console is not configured with a default user. Before you can connect to the server's console remotely, you must add a user to the configuration.
Important
The information in this file is unencrypted so it is not suitable for environments that require strict security.
To add a user:
- Open
InstallDir/etc/users.propertiesin your favorite text editor. - Locate the line
#admin=admin,admin.This line specifies a useradminwith the passwordadminand the roleadmin. - Remove the leading
#to uncomment the line. - Replace the first
adminwith a name for the user. - Replace
adminwith the password for the user. - Leave the last
adminas is, and save the changes. - To access the container's JMX port and to use the ActiveMQ Web console, you must specify the credentials for them. To do so, open
InstallDir/etc/system.propertiesin your favorite text editor and search for the following lines:Authentication - must match an entry in users.properties with the admin privilege
# # Authentication - must match an entry in users.properties with the admin privilege # #activemq.jmx.user=admin #activemq.jmx.password=adminCopy to Clipboard Copied! Toggle word wrap Toggle overflow Uncomment theactivemq.jmx.user=adminandactivemq.jmx.password=adminsettings (by removing the leading#) and change the username and password values to the same username and password values you just defined in theetc/users.propertiesfile.