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
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • How to Install VPN on Linux?
  • Google Cloud KMS vs. AWS KMS: Java Encryption Guide
  • Multi-Agent Orchestration on AWS With AgentCore Runtime and A2A
  • AWS 7R Migration Strategies: A Decision Framework for Engineering Teams

Trending

  • How to Build a Scalable SaaS Product Architecture
  • Diagnosing Test Failures at Scale: Correlating Execution Evidence Across Ephemeral Runners
  • After the AI Commit: What Eight Retrospectives Taught Me About Working With Coding Agents
  • How to Migrate From C/C++ to Rust: A Practical Guide for Embedded IoT Systems

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  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!

By 
Ajay Sodhi
·
Jan. 30, 18 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
21.2K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

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?
  • Google Cloud KMS vs. AWS KMS: Java Encryption Guide
  • Multi-Agent Orchestration on AWS With AgentCore Runtime and A2A
  • AWS 7R Migration Strategies: A Decision Framework for Engineering Teams

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

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 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook