Red Hat AMQ 6
As of February 2025, Red Hat is no longer supporting Red Hat AMQ 6. If you are using AMQ 6, please upgrade: Migrating to AMQ 7.11.2. Shutting Down a Broker Remotely
Abstract
Overview Copy linkLink copied to clipboard!
- using the stop command—the stop command does not require starting an instance of the broker
- using a remote console connection—a broker's console can be used to remotely shutdown a broker on another machine
- using a fabric member's console—brokers that are part of a fabric can stop members of their fabric
- using the management console—brokers that are part of a fabric can be stopped using a management console connected to their fabricFor more information see Using the Management Console.
Using the stop command Copy linkLink copied to clipboard!
InstallDir/bin
directory. The commands syntax is shown in Example 11.2, “Stop Command Syntax”.
Example 11.2. Stop Command Syntax
stop
[
-a port
] {
-h hostname
} {
-u username
} {
-p password
}
-a port
- Specifies the SSH port of the remote instance. The default is 8101.
-h hostname
- Specifies the hostname of the machine on which the remote instance is running.
-u username
- Specifies the username used to connect to the remote broker.NoteThe default username for a broker is
karaf
. -p password
- Specifies the password used to connect to the remote broker.NoteThe default password for a broker is
karaf
.
NEBrokerHost2
.
Example 11.3. Stopping a Remote Broker
bin/stop -u karaf -p karaf -h NEBrokerHost2
bin/stop -u karaf -p karaf -h NEBrokerHost2
Using a remote console Copy linkLink copied to clipboard!
NWBrokerHost
.
Example 11.4. Shutting Down a Broker using a Remote Console Connection
Shutting down remote brokers in a fabric Copy linkLink copied to clipboard!
fabric-broker3
.
Example 11.5. Shutting Down a Broker in a Fabric
./bin/client fabric-broker3 fabric:container-stop
./bin/client fabric-broker3 fabric:container-stop