DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Modern Digital Website Security: Prepare to face any form of malicious web activity and enable your sites to optimally serve your customers.

Containers Trend Report: Explore the current state of containers, containerization strategies, and modernizing architecture.

Low-Code Development: Learn the concepts of low code, features + use cases for professional devs, and the low-code implementation process.

E-Commerce Development Essentials: Considering starting or working on an e-commerce business? Learn how to create a backend that scales.

Related

  • How to Install VPN on Linux?
  • NGINX Yum Proxy Repository Setup for Amazon Linux EC2
  • Creating EFS Using CloudFormation and Mounting it With EC2 Linux Instance
  • Set Up AWS EC2 Instance: RedHat Enterprise Linux 8 (RHEL 8)

Trending

  • Live Database Migration
  • Demystifying Static Mocking With Mockito
  • Top 10 Software Architecture Patterns to Follow in 2024
  • The Advantage of Using Cache to Decouple the Frontend Code
  1. DZone
  2. Coding
  3. Tools
  4. Installing RabbitMQ With Erlang on AWS EC2 Amazon Linux Instance

Installing RabbitMQ With Erlang on AWS EC2 Amazon Linux Instance

In this article, we're going to see how to combine this suite of popular technologies to create a development environment. Read on for more!

Ajay Sodhi user avatar by
Ajay Sodhi
·
Jan. 30, 18 · Tutorial
Like (3)
Save
Tweet
Share
20.1K Views

Join the DZone community and get the full member experience.

Join For Free

Today, we are going to install Erlang version 20.1 and RabbitMQ 3.7 on an Amazon EC2 instance which has an Amazon Linux version installed in it. In a nutshell, we can say that Amazon Linux can be considered equivalent to CentOS 6.

I am not going to eat up your times, so I'll just jump directly into the commands that you have to execute on your new instance. Before we start, please ensure:

  1. You have the administrative privileges. 
  2. Java 8 is installed.

Briefly, to install RabbitMQ, we would need Erlang and Socat to be installed first.

Installing Erlang Version 20.1

Erlang is also a language which needs to be installed. Use the following commands to install Erlang.

# cd /opt
# wget https://github.com/rabbitmq/erlang-rpm/releases/download/v20.1.7/erlang-20.1.7-1.el6.x86_64.rpm
# rpm -ivh erlang-20.1.7-1.el6.x86_64.rpm

Installing Socat

This is the package which is needed to install RabbitMQ V 3.7, so install it beforehand with the following command:

# yum install socat

Installing RabbitMQ v3.7.0

So now the ground is ready to install the RabbitMQ server. Use the following commands to proceed:

# wget https://dl.bintray.com/rabbitmq/all/rabbitmq-server/3.7.0/rabbitmq-server-3.7.0-1.el6.noarch.rpm
# rpm -ivhrabbitmq-server-3.7.0-1.el6.noarch.rpm
# service rabbitmq-server start

Now we have to make sure that RabbitMQ is up as a service as soon as the server starts up. To do this, execute the following command: 

# chkconfigrabbitmq-server on

To access the RabbitMQ Management Console on the web, we need to enable the plugin. To do so execute the following command:

#  cd /usr/lib/rabbitmq/bin/
# rabbitmq-plugins enable rabbitmq_management
# cd /etc/rabbitmq/
# vim rabbitmq.config
[{rabbit, [{tcp_listeners, [{"", 5672}]},{loopback_users, []}]}].
Esc+:wq! (To save file and exit editor)

Now you can access RabbitMQ on the browser using:

http://<IP_Of_Your_AWS_Machine>:15672/

To log in, use guest/guest as the default password, which you can change later.

Congratulations, you did it!

Do share your thoughts if you have any queries or suggestions. 

Thanks!

Ajay Sodhi

AWS Erlang (programming language) Linux (operating system)

Opinions expressed by DZone contributors are their own.

Related

  • How to Install VPN on Linux?
  • NGINX Yum Proxy Repository Setup for Amazon Linux EC2
  • Creating EFS Using CloudFormation and Mounting it With EC2 Linux Instance
  • Set Up AWS EC2 Instance: RedHat Enterprise Linux 8 (RHEL 8)

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: