Installation

From repository:

_$: apt-get install rabbitmq-server

Latest version:

_$: wget www.rabbitmq.com/releases/rabbitmq-server/v3.1.5/rabbitmq-server_3.1.5-1_all.deb
_$: dpkg -i rabbitmq-server_3.1.5-1_all.deb
_$: apt-get -f install

Check installed version

_$: rabbitmqctl status | grep rabbit
_$: cd /usr/lib/rabbitmq
_$: find . -type f -name "rabbitmq-plugins"
./lib/rabbitmq_server-2.7.1/sbin/rabbitmq-plugins
_$: which rabbitmq-server
/usr/sbin/rabbitmq-server
_$: ln -s /usr/lib/rabbitmq/lib/rabbitmq_server-2.7.1/sbin/rabbitmq-plugins /usr/sbin
_$: ln -s /usr/lib/rabbitmq/lib/rabbitmq_server-2.7.1/sbin/rabbitmq-env     /usr/sbin

Configuration

_$: rabbitmq-plugins list
_$: rabbitmq-plugins enable amqp_client
_$: rabbitmq-plugins enable rabbitmq_management
_$: rabbitmq-plugins enable rabbitmq_stomp
_$: rabbitmqctl restart
_$: rabbitmq-plugins list
[E] amqp_client                       0.0.0
[ ] eldap                             0.0.0-git
[ ] erlando                           0.0.0
[e] mochiweb                          1.3-rmq0.0.0-git
[ ] rabbitmq_auth_backend_ldap        0.0.0
[ ] rabbitmq_auth_mechanism_ssl       0.0.0
[ ] rabbitmq_consistent_hash_exchange 0.0.0
[ ] rabbitmq_federation               0.0.0
[ ] rabbitmq_jsonrpc                  0.0.0
[ ] rabbitmq_jsonrpc_channel          0.0.0
[ ] rabbitmq_jsonrpc_channel_examples 0.0.0
[E] rabbitmq_management               0.0.0
[e] rabbitmq_management_agent         0.0.0
[ ] rabbitmq_management_visualiser    0.0.0
[e] rabbitmq_mochiweb                 0.0.0
[ ] rabbitmq_shovel                   0.0.0
[ ] rabbitmq_shovel_management        0.0.0
[E] rabbitmq_stomp                    0.0.0
[ ] rabbitmq_tracing                  0.0.0
[ ] rfc4627_jsonrpc                   0.0.0-git
[e] webmachine                        1.7.0-rmq0.0.0-hg

rabbitmqctl

List queues:

_$: rabbitmqctl list_queues     # List queues: name and deep
_$: rabbitmqctl list_queues name messages_ready messages_unacknowledged

Number of queues:

_$: rabbitmqctl list_queues | grep -v -E '(celery|email|feed|photo|\.\.\.)' | wc -l