U1.11 Ubuntu Quick Start (QS): RabbitMq deploy to host - chempkovsky/CS2WPF-and-CS2XAMARIN GitHub Wiki

Preliminary steps

  • Pre-installed DHCP in the virtual environment (for example, a hardware implementation of a DHCP server in a modem)
  • Step 1: Deploy two Ubuntu 20.04 TLS virtual machines. Consult the articles U1.01 and U1.02
  • Step 2: Set device name of the first Ubuntu virtual machine: u200401
  • Step 3: restart u200401
  • Step 4: for u200401 show ip address
    • run the command "ip a"
Click to show the picture

picture

  • Step 5: for u200401 modify "/etc/hosts"
    • run the command: sudo nano /etc/hosts
Click to show the picture

picture

  • Step 6: Set device name of the second Ubuntu virtual machine: u200402
  • Step 7: restart u200402
  • Step 8: for u200402 show ip address
    • run the command "ip a"
Click to show the picture

picture

  • Step 9: for u200402 modify "/etc/hosts"
    • run the command: sudo nano /etc/hosts
Click to show the picture

picture

RabbitMq Installation Option B for u200401

sudo apt-get install curl gnupg apt-transport-https -y
curl -1sLf "https://keys.openpgp.org/vks/v1/by-fingerprint/0A9AF2115F4687BD29803A206B73A36E6026DFCA" | sudo gpg --dearmor | sudo tee /usr/share/keyrings/com.rabbitmq.team.gpg > /dev/null
curl -1sLf "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xf77f1eda57ebb1cc" | sudo gpg --dearmor | sudo tee /usr/share/keyrings/net.launchpad.ppa.rabbitmq.erlang.gpg > /dev/null
curl -1sLf "https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey" | sudo gpg --dearmor | sudo tee /usr/share/keyrings/io.packagecloud.rabbitmq.gpg > /dev/null
  • At second:
sudo tee /etc/apt/sources.list.d/rabbitmq.list <<EOF
  • At third:
deb [signed-by=/usr/share/keyrings/net.launchpad.ppa.rabbitmq.erlang.gpg] http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu bionic main
deb-src [signed-by=/usr/share/keyrings/net.launchpad.ppa.rabbitmq.erlang.gpg] http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu bionic main
deb [signed-by=/usr/share/keyrings/io.packagecloud.rabbitmq.gpg] https://packagecloud.io/rabbitmq/rabbitmq-server/ubuntu/ bionic main
deb-src [signed-by=/usr/share/keyrings/io.packagecloud.rabbitmq.gpg] https://packagecloud.io/rabbitmq/rabbitmq-server/ubuntu/ bionic main
EOF
  • At fourth:
sudo apt-get update -y
sudo apt-get install -y erlang-base erlang-asn1 erlang-crypto erlang-eldap erlang-ftp erlang-inets erlang-mnesia erlang-os-mon erlang-parsetools erlang-public-key erlang-runtime-tools erlang-snmp erlang-ssl erlang-syntax-tools erlang-tftp erlang-tools erlang-xmerl
sudo apt-get install rabbitmq-server -y --fix-missing
  • make a test:
sudo rabbitmqctl version
  • here is a result
Click to show the picture

picture

RabbitMq Installation Option A for u200402

sudo apt-get install curl gnupg apt-transport-https -y
curl -1sLf "https://keys.openpgp.org/vks/v1/by-fingerprint/0A9AF2115F4687BD29803A206B73A36E6026DFCA" | sudo gpg --dearmor | sudo tee /usr/share/keyrings/com.rabbitmq.team.gpg > /dev/null
curl -1sLf https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/gpg.E495BB49CC4BBE5B.key | sudo gpg --dearmor | sudo tee /usr/share/keyrings/io.cloudsmith.rabbitmq.E495BB49CC4BBE5B.gpg > /dev/null
curl -1sLf https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/gpg.9F4587F226208342.key | sudo gpg --dearmor | sudo tee /usr/share/keyrings/io.cloudsmith.rabbitmq.9F4587F226208342.gpg > /dev/null
  • At second:
sudo tee /etc/apt/sources.list.d/rabbitmq.list <<EOF
  • At third:
deb [signed-by=/usr/share/keyrings/io.cloudsmith.rabbitmq.E495BB49CC4BBE5B.gpg] https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu bionic main
deb-src [signed-by=/usr/share/keyrings/io.cloudsmith.rabbitmq.E495BB49CC4BBE5B.gpg] https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu bionic main
deb [signed-by=/usr/share/keyrings/io.cloudsmith.rabbitmq.9F4587F226208342.gpg] https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/ubuntu bionic main
deb-src [signed-by=/usr/share/keyrings/io.cloudsmith.rabbitmq.9F4587F226208342.gpg] https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/ubuntu bionic main
EOF
  • At fourth:
sudo apt-get update -y
sudo apt-get install -y erlang-base erlang-asn1 erlang-crypto erlang-eldap erlang-ftp erlang-inets erlang-mnesia erlang-os-mon erlang-parsetools erlang-public-key erlang-runtime-tools erlang-snmp erlang-ssl erlang-syntax-tools erlang-tftp erlang-tools erlang-xmerl
sudo apt-get install rabbitmq-server -y --fix-missing
  • make a test:
sudo rabbitmqctl version
  • here is a result
Click to show the picture

picture

Quick install with Cloudsmith

We start with

  • Pre-installed DHCP in the virtual environment (for example, a hardware implementation of a DHCP server in a modem)
  • Deployed Ubuntu 20.04 TLS on virtual machine. Consult the articles U1.01 and U1.02

Step 1

  • run the script
sudo apt-get install curl

Step 2

Step 3

curl -1sLf 'https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/setup.deb.sh' sudo -E bash

Step 4

curl -1sLf 'https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/setup.deb.sh' | sudo -E bash

Step 5

  • run the script
sudo apt-get install rabbitmq-server -y --fix-missing

Step 6

  • make a test:
sudo rabbitmqctl version

Quick install with PackageCloud

We start with

  • Pre-installed DHCP in the virtual environment (for example, a hardware implementation of a DHCP server in a modem)
  • Deployed Ubuntu 20.04 TLS on virtual machine. Consult the articles U1.01 and U1.02

Step 1

  • run the script
sudo apt-get install curl

Step 2

Step 3

curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.deb.sh | sudo bash

Step 4

  • run the scripts
sudo apt-get install esl-erlang
sudo apt-get install rabbitmq-server -y --fix-missing
  • it prints errors
Click to show the picture

picture

Start and stop the server

  • Step 1: start the server
sudo systemctl start rabbitmq-server
  • Step 2: stop the server
sudo systemctl stop rabbitmq-server
  • here is a result for u200401-machine
Click to show the picture

picture

  • here is a result for u200402-machine
Click to show the picture

picture

Configuring RabbitMQ

Port Access

Guest user

Controlling System Limits on Linux

Managing the Service

Management Plugin

sudo rabbitmq-plugins enable rabbitmq_management
  • using browser go to
http://localhost:15672/
  • login as ** guest ** with password = ** guest **

  • here is a result for u200402-machine

Click to show the picture

picture

⚠️ **GitHub.com Fallback** ⚠️