## Shutting Down a Broker

### Stopping a broker in the default JMX context

You can shut down a broker running in the default JMX context using the stop task, as follows:

activemq-admin stop broker1

| Note
The stop task requires JMX to be enabled, which it is by default.

### Shutting down all running brokers

To shut down all the brokers running in the default JMX context (`service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi`), type the following:

activemq-admin stop --all

### Shutting down a broker in a non-default JMX context

If the broker is running in a JMX context other than the default, you need to pass the `--jmxurl` option to the stop task, as follows:

activemq-admin stop --jmxurl service:jmx:rmi:///jndi/rmi://localhost:8050/jmxrmi