Questo contenuto non è disponibile nella lingua selezionata.
10.2. Shutting Down a Broker Remotely
Abstract
Overview
- 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
InstallDir/bin
directory. The commands syntax is shown in Example 10.2, “Stop Command Syntax”.
Example 10.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 10.3. Stopping a Remote Broker
bin/stop -u karaf -p karaf -h NEBrokerHost2
Using a remote console
NWBrokerHost
.
Example 10.4. Shutting Down a Broker using a Remote Console Connection
JBossA-MQ:karaf@root>
ssh -l karaf -P karaf NWBrokerHost
_ ____ __ __ ____ | | _ \ /\ | \/ |/ __ \ | | |_) | ___ ___ ___ / \ ______| \ / | | | | _ | | _ < / _ \/ __/ __| / /\ \______| |\/| | | | | | |__| | |_) | (_) \__ \__ \ / ____ \ | | | | |__| | \____/|____/ \___/|___/___/ /_/ \_\ |_| |_|\___\_\ JBoss A-MQ (6.0.0.redhat-012) http://www.redhat.com/products/jbossenterprisemiddleware/amq/ Hit '<tab>' for a list of available commands and '[cmd] --help' for help on a specific command. Hit '<ctrl-d>' or 'osgi:shutdown' to shutdown JBoss A-MQ.
JBossA-MQ:karaf@root>
osgi:shutdown
Confirm: shutdown instance root (yes/no):
yes
JBossA-MQ:karaf@root>
JBossA-MQ:karaf@root>
Shutting down remote brokers in a fabric
fabric-broker3
.
Example 10.5. Shutting Down a Broker in a Fabric
./bin/client fabric-broker3 fabric:container-stop