Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

Panel
panelIconIdatlassian-info
panelIcon:info:
bgColor#FFBDAD

Starting October 11, 2024 (Zephyr Enterprise 8.2), the Zephyr Enterprise documentation moved from its current location on Atlassian to a dedicated, standalone Zephyr Enterprise documentation page. Please see: https://support.smartbear.com/zephyr-enterprise/docs/en/zephyr-enterprise/zephyr-installation-and-upgrade-guides/zephyr-on-premise-production-installation/zephyr-enterprise-services/rabbitmq-deployment/rabbitmq-deployment--ubuntu-.html

Table of Contents
minLevel1
maxLevel63
outlinefalse
stylenone
typelist
printablefalse

...

Setup RabbitMQ on Ubuntu with 1 node

Install RabbitMQ Server (Ubuntu 3.12.10)

Install RabbitMQ packages on all servers:

  1. Cloudsmith Quick Start Script.
    Run the below script file to install RabbitMQ on Ubuntu.

    image-20240328-062631.png
    For more installing details please refer: Installing on Debian and Ubuntu — RabbitMQ

    NOTE:
    In the above script file, we have used the Distribution as “focal” like below, since our Ubuntu version is 20.04.
    deb [signed … /ubuntu focal main
    deb-src [signed-by…ubuntu focal main
    etc…

    Please replace “focal” and use the appropriate Distribution name in your script file from the below table.
    jammy for Ubuntu 23.04
    jammy for Ubuntu 22.04
    focal for Ubuntu 20.04
    bionic for Ubuntu 18.04
    buster for Debian Buster, Bullseye, and Sid

  2. Once the RabbitMQ server package is installed, start and enable the RabbitMQ service with the following command:

    Code Block
    sudo systemctl start rabbitmq-server
    sudo systemctl enable rabbitmq-server
  3. Lastly, run the following command to verify the rabbitmq-server service’s status.
    sudo systemctl status rabbitmq-server

  4. You can also verify the version of RabbitMQ on your system using the following command.

    Code Block
    sudo rabbitmq-diagnostics server_version

     

Setting up an Admin User for RabbitMQ

The RabbitMQ admin user has permission to configure, read, and write any entity available on the RabbitMQ cluster.

...

Code Block
sudo rabbitmqctl set_permissions -p / [user_id] ".*" ".*" ".*"
  1. To delete the user, use the below command:

Code Block
sudo rabbitmqctl delete_user [user_id]

...

Note: Once RabbitMQ UI is up you can log in by using the above username and passwordpassword 

 

Enabling the RabbitMQ Management Plugin

The RabbitMQ Management Plugin provides a web-based management UI running on default port 15672 and the command-line management tool [rabbitmqadmin]

...

Setup RabbitMQ Cluster on Ubuntu with 3 nodes

Setup Hostname Resolution

Before setting up the RabbitMQ cluster, you will need to set up hostname resolution on all servers. So each server can communicate with each other by hostname.

...

Code Block
ping -c 3 RabbitMQ-Cluster-Node-1
ping -c 3 RabbitMQ-Cluster-Node-2
ping -c 3 RabbitMQ-Cluster-Node-3

Install RabbitMQ Server (Ubuntu 3.12.10)

Install RabbitMQ packages on all servers:

  1. Cloudsmith Quick Start Script.
    Run the below script file to install RabbitMQ on Ubuntu.

    image-20240328-062650.png
    For more installing details please refer: Installing on Debian and Ubuntu — RabbitMQ
    NOTE:
    In the above script file, we have used the Distribution as “focal” like below, since our Ubuntu version is 20.04.
    deb [signed … /ubuntu focal main
    deb-src [signed-by…ubuntu focal main
    etc…

    Please replace “focal” and use the appropriate distribution name in your script file from the below table.
    jammy for Ubuntu 23.04
    jammy for Ubuntu 22.04
    focal for Ubuntu 20.04
    bionic for Ubuntu 18.04
    buster for Debian Buster, Bullseye, and Sid

  2. Once the RabbitMQ server package is installed, start and enable the RabbitMQ service with the following command:

    Code Block
    sudo systemctl start rabbitmq-server
    sudo systemctl enable rabbitmq-server
  3. Lastly, run the following command to verify the rabbitmq-server service’s status.
    sudo systemctl status rabbitmq-server

  4. You can also verify the version of RabbitMQ on your system using the following command.

    Code Block
    sudo rabbitmq-diagnostics server_version

Configure RabbitMQ Cluster

RabbitMQ is an application written in Erlang and by default, provides a .erlang.cookie file on the RabbitMQ data directory (/var/lib/rabbitmq).

...

  1. Now, run the below command to start the rabbitmq-server service.

    Code Block
    sudo systemctl start rabbitmq-server
  2. Run the following:

rabbitmqctl commands on server 2 and server 3 to add them to the RabbitMQ cluster (server 1).

...

  1. Finally, execute the rabbitmqctl command below to verify the RabbitMQ cluster status. You can run this from any server.

    Code Block
    sudo rabbitmqctl cluster_status

Setting up an Admin User for RabbitMQ

The RabbitMQ admin user has permission to configure, read, and write any entity available on the RabbitMQ cluster.

  1. Switch to server 1 , and run the rabbitmqctl command below to create a new user with userId and password.

...

Note: Once RabbitMQ UI is up you can log in by using the above username and password

Enabling the RabbitMQ Management Plugin

The RabbitMQ Management Plugin provides a web-based management UI running on default port 15672 and the command-line management tool [rabbitmqadmin]

...