By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
IT Infras HolicIT Infras HolicIT Infras Holic
  • News
  • Linux
    • Application
    • SELinux
    • Centos
    • Ubuntu
  • Docker
  • Web Server
    • Kong
    • Nginx
    • Openlitespeed
  • Database
  • Mikrotik
  • Windows
  • Mail
  • Tools
    • 2048
    • Fantasy Forest
    • Hextris
    • Crossword
Search
  • Privacy Policy
© 2024. All Rights Reserved.
Font ResizerAa
IT Infras HolicIT Infras Holic
Font ResizerAa
  • News
  • Linux
  • Docker
  • Web Server
  • Database
  • Mikrotik
  • Windows
  • Mail
  • Tools
Search
  • News
  • Linux
    • Application
    • SELinux
    • Centos
    • Ubuntu
  • Docker
  • Web Server
    • Kong
    • Nginx
    • Openlitespeed
  • Database
  • Mikrotik
  • Windows
  • Mail
  • Tools
    • 2048
    • Fantasy Forest
    • Hextris
    • Crossword
Follow US
© 2022 Foxiz News Network. Ruby Design Company. All Rights Reserved.
IT Infras Holic > Blog > Linux > Application > Install RabbitMQ on CentOS 7
LinuxApplicationCentos

Install RabbitMQ on CentOS 7

writer
Share
3 Min Read
SHARE

Install RabbitMQ on CentOS 7

The most extensively used open source message broker is RabbitMQ. RabbitMQ is one of the most widely used open source message brokers, boasting tens of thousands of users. Worldwide, small startups and big businesses alike use RabbitMQ, from T-Mobile to Runtastic.

Contents
Install RabbitMQ on CentOS 7Install Epel Release & UpdateInstall ErlangDownload repositoryAdd repositoryInstall erlang and dependenciesInstall RabbitMQDownload RabbitMQ packageAdd signing keyInstall rabbitmq-serverStart RabbitMQAutomatically start RabbitMQ at boot timeRabbitMQ Config (Optional)Create rabbitmq confFirewallIf you have a firewall installed and runningReload the firewallSELinuxIf you have SELinux enabledRabbitMQ Web Management ConsoleEnable RabbitMQ web management consoleModify file permissionsCreate an admin user (Change password to a strong password)Make admin user and administratorSet admin user permissionsTo access the RabbitMQ adminRabbitMQ Web Management SSL (Recommended)Create or update rabbitmq.conf

On-premises and in the cloud deployment of RabbitMQ is simple and lightweight. Multiple messaging protocols are supported. To address high-scale, high-availability needs, RabbitMQ can be implemented in distributed and federated topologies.

Install Epel Release & Update

 

1
2
sudo yum -y install epel-release
sudo yum -y update

 

Install Erlang

Download repository

1
wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm

 

Add repository

1
sudo rpm -Uvh erlang-solutions-1.0-1.noarch.rpm

 

Install erlang and dependencies

1
sudo yum -y install erlang socat logrotate

 

Install RabbitMQ

Download RabbitMQ package

1
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.8/rabbitmq-server-3.8.8-1.el6.noarch.rpm

 

Add signing key

1
sudo rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc

 

Install rabbitmq-server

1
sudo rpm -Uvh rabbitmq-server-3.8.8-1.el6.noarch.rpm

 

Start RabbitMQ

1
sudo systemctl start rabbitmq-server

 

Automatically start RabbitMQ at boot time

1
sudo systemctl enable rabbitmq-server

 

RabbitMQ Config (Optional)

Create rabbitmq conf

1
nano /etc/rabbitmq/rabbitmq.conf`

 

fill with these

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
listeners.ssl.default = 5671
 
ssl_options.cacertfile = /path/to/cacertfile.pem
ssl_options.certfile   = /path/to/certfile.pem
ssl_options.keyfile    = /path/to/keyfile.pem
ssl_options.verify     = verify_peer
ssl_options.versions.1 = tlsv1.2
ssl_options.versions.2 = tlsv1.1
ssl_options.fail_if_no_peer_cert = false
 
tcp_listen_options.backlog       = 128
tcp_listen_options.nodelay       = true
tcp_listen_options.exit_on_close = false
tcp_listen_options.keepalive     = false
 
heartbeat = 580

 

Firewall

If you have a firewall installed and running

1
2
3
4
5
6
7
sudo firewall-cmd --zone=public --permanent --add-port=4369/tcp
sudo firewall-cmd --zone=public --permanent --add-port=25672/tcp
sudo firewall-cmd --zone=public --permanent --add-port=5671-5672/tcp
sudo firewall-cmd --zone=public --permanent --add-port=15672/tcp
sudo firewall-cmd --zone=public --permanent --add-port=61613-61614/tcp
sudo firewall-cmd --zone=public --permanent --add-port=1883/tcp
sudo firewall-cmd --zone=public --permanent --add-port=8883/tcp

 

Reload the firewall

1
sudo firewall-cmd --reload

SELinux

If you have SELinux enabled

1
sudo setsebool -P nis_enabled 1

 

RabbitMQ Web Management Console

Enable RabbitMQ web management console

1
sudo rabbitmq-plugins enable rabbitmq_management

 

Modify file permissions

1
sudo chown -R rabbitmq:rabbitmq /var/lib/rabbitmq/

 

Create an admin user (Change password to a strong password)

1
sudo rabbitmqctl add_user admin password

 

Make admin user and administrator

1
sudo rabbitmqctl set_user_tags admin administrator

 

Set admin user permissions

1
sudo rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"

 

To access the RabbitMQ admin

1
http://Your_Server_IP:15672

 

RabbitMQ Web Management SSL (Recommended)

Create or update rabbitmq.conf

1
nano  /etc/rabbitmq/rabbitmq.conf

 

fill with these

1
2
3
4
5
6
management.listener.port = 15672
management.listener.ssl  = true
 
management.listener.ssl_opts.cacertfile = /path/to/cacertfile.pem
management.listener.ssl_opts.certfile   = /path/to/certfile.pem
management.listener.ssl_opts.keyfile    = /path/to/keyfile.pem

 

You Might Also Like

Monitoring File & Directory Changes using Bash Script

Vulnerability Checker CVE-2024-3094

Unleashing the Potential of Knowledge Management with Wiki.js

How to Install Apache Guacamole with Docker Compose

Unlocking Seamless Remote Access: Exploring the Power of Apache Guacamole

TAGGED: how to install rabbitmq, rabbitmq
Share This Article
Facebook Twitter Whatsapp Whatsapp LinkedIn Telegram Copy Link
Previous Article java process manager Java Process Manager 2 (PM2) Cheat Sheet
Next Article UFW Linux Firewall Cheatsheet UFW Linux Firewall Cheatsheet
Leave a comment

Leave a Reply Cancel reply

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

Latest News

bash
Monitoring File & Directory Changes using Bash Script
Linux Application
vulnerability
Vulnerability Checker CVE-2024-3094
Linux
wiki.js
Unleashing the Potential of Knowledge Management with Wiki.js
Application Linux
Install Apache Guacamole
How to Install Apache Guacamole with Docker Compose
Application Linux

You Might also Like

How to Install Cyberpanel on Ubuntu 22.04
OpenlitespeedUbuntuWeb Server

Install Cyberpanel on Ubuntu 22.04

8 Min Read
How to map SFTP as a drive on Windows 10
LinuxWindows

How to map SFTP as a drive on Windows 10

3 Min Read
Follow US
© 2024
activity notes activity notes
Welcome Back!

Sign in to your account

Lost your password?