Configure autostart
By default, the IBM MQ Console is automatically started when the mqweb server starts. We can configure whether the IBM MQ Console and the REST API start automatically by using the setmqweb command.
Before starting
To complete this task, we must be a user with certain privileges so that we can use the dspmqweb and setmqweb commands:- On z/OS, we must have authority to run the dspmqweb and setmqweb commands, and write access to the mqwebuser.xml file.
- On all other operating systems, we must be a privileged user.
Attention:
Before issuing either the setmqweb or dspmqweb commands on z/OS, we must set the WLP_USER_DIR environment variable, so that the variable points to your mqweb server configuration.
To do this, issue the following command:export WLP_USER_DIR=WLP_user_directorywhere WLP_user_directory is the name of the directory that is passed to crtmqweb. For example:
export WLP_USER_DIR=/var/mqm/web/installation1
For more information, see Create the mqweb server.
Procedure
-
View the current configuration of the autostart by using the following command:
dspmqweb properties -a
The mqRestAutostart field shows whether the REST API is automatically started, and the mqConsoleAutostart field shows whether the IBM MQ Console is automatically started. For more information, see dspmqweb. -
Configure whether the IBM MQ Console starts
automatically by using the following command:
setmqweb properties -k mqConsoleAutostart -v start
where start is the value true if we want the IBM MQ Console to automatically start, or false otherwise.
-
Configure whether the REST API starts
automatically by using the following command:
setmqweb properties -k mqRestAutostart -v start
where start is the value true if we want the REST API to automatically start, or false otherwise.
Parent topic: Configure the IBM MQ Console and REST API