Skip to content

Instantly share code, notes, and snippets.

@misablaha
Created April 25, 2019 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save misablaha/c74d9db48fcd57925e4a181c3615b3a2 to your computer and use it in GitHub Desktop.
Save misablaha/c74d9db48fcd57925e4a181c3615b3a2 to your computer and use it in GitHub Desktop.
Install RabbitMQ on Amazon Linux 2
sudo yum update -y
sudo yum install htop -y
# Install Erlang
sudo yum install https://github.com/rabbitmq/erlang-rpm/releases/download/v21.3.4/erlang-21.3.4-1.el7.x86_64.rpm -y
# Install RabbitMQ
sudo yum install https://dl.bintray.com/rabbitmq/all/rabbitmq-server/3.7.14/rabbitmq-server-3.7.14-1.el7.noarch.rpm -y
# Allow remote connections
# @see: https://www.rabbitmq.com/access-control.html
echo 'loopback_users = none' | sudo tee -a /etc/rabbitmq/rabbitmq.conf
# Increase the maximum number of files for RabbitMQ
# @see: https://stackoverflow.com/questions/46240032/rabbitmq-file-descriptor-limit
sudo vim /usr/lib/systemd/system/rabbitmq-server.service
# set
# [Service]
# LimitNOFILE=65536
sudo systemctl daemon-reload
# Enable RabbitMQ Management Console
/usr/lib/rabbitmq/bin/rabbitmq-plugins enable rabbitmq_management
# Start as service and enable autostart
sudo service rabbitmq-server start
sudo chkconfig rabbitmq-server on
@sanjaygeeky
Copy link

@Richard0528
Copy link

sudo yum install erlang
sudo yum install rabbitmq-server

@ag00se
Copy link

ag00se commented Mar 1, 2023

sudo yum install erlang
sudo yum install rabbitmq-server

On Amazon Linux 2 this will install old versions of erlang and rabbitmq-server.
Use the official documentation as reference: RabbitMQ Install Documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment