Setting up Rabbit MQ Server

Here are some quick notes that I refer to when installing Rabbit MQ server on Linux.

Installation

Read and follow: https://www.rabbitmq.com/download.html

Quickstart

Make sure the server is started:

sudo systemctl start rabbitmq-server

Now switch to root with

sudo su

A lot of management utilities are only available to root, in /usr/sbin

Web GUI

If you like (I do!) enable the Web GUI on port 15672.

rabbitmq-plugins enable rabbitmq_management

If the server is on localhost, you can login with guest/guest

But it is best to create another admin user:

CLI

Create a user rmquser with password rmqpass

rabbitmqctl add_user rmquser rmqpass

Reference: https://www.rabbitmq.com/rabbitmqctl.8.html#User_Management

CLI command to add a new user and password

rabbitmqctl add_user username password

CLI command to make the user a administrator

rabbitmqctl set_user_tags username administrator

CLI command to set permissions for the user

rabbitmqctl set_permissions -p / username ".*" ".*" ".*"

Plugins

List the installed plugins:

rabbitmq-plugins list
Listing plugins with pattern ".*" ...
Configured: E = explicitly enabled; e = implicitly enabled
| Status: * = running on rabbit@midgard
|/
[ ] rabbitmq_amqp1_0 3.8.2
[ ] rabbitmq_auth_backend_cache 3.8.2
[ ] rabbitmq_auth_backend_http 3.8.2
[ ] rabbitmq_auth_backend_ldap 3.8.2
[ ] rabbitmq_auth_backend_oauth2 3.8.2
[ ] rabbitmq_auth_mechanism_ssl 3.8.2
[ ] rabbitmq_consistent_hash_exchange 3.8.2
[ ] rabbitmq_event_exchange 3.8.2
[ ] rabbitmq_federation 3.8.2
[ ] rabbitmq_federation_management 3.8.2
[ ] rabbitmq_jms_topic_exchange 3.8.2
[E*] rabbitmq_management 3.8.2
[e*] rabbitmq_management_agent 3.8.2
[ ] rabbitmq_mqtt 3.8.2
[ ] rabbitmq_peer_discovery_aws 3.8.2
[ ] rabbitmq_peer_discovery_common 3.8.2
[ ] rabbitmq_peer_discovery_consul 3.8.2
[ ] rabbitmq_peer_discovery_etcd 3.8.2
[ ] rabbitmq_peer_discovery_k8s 3.8.2
[ ] rabbitmq_prometheus 3.8.2
[ ] rabbitmq_random_exchange 3.8.2
[ ] rabbitmq_recent_history_exchange 3.8.2
[ ] rabbitmq_sharding 3.8.2
[ ] rabbitmq_shovel 3.8.2
[ ] rabbitmq_shovel_management 3.8.2
[ ] rabbitmq_stomp 3.8.2
[ ] rabbitmq_top 3.8.2
[ ] rabbitmq_tracing 3.8.2
[ ] rabbitmq_trust_store 3.8.2
[e*] rabbitmq_web_dispatch 3.8.2
[ ] rabbitmq_web_mqtt 3.8.2
[ ] rabbitmq_web_mqtt_examples 3.8.2
[ ] rabbitmq_web_stomp 3.8.2
[ ] rabbitmq_web_stomp_examples 3.8.2

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.