Install Tomcat7 and RabbitMQ in Fedora or Amazon EC2 AMI

INSTALL TOMCAT 7:

1.sudo yum update  (Do a general update of your system)

2. sudo yum install tomcat7 tomcat7-webapps

3. sudo service tomcat7 start

4. cd /usr/share/tomcat7

Add .WAR files into the folder /usr/share/tomcat7

By Default Tomcat will take 8080 as a running port number.

CHECK : http://54.175.172.38:8080/

INSTALL RABBITMQ

1. RABBITMQ is built on top of Erlang langage. So we need to install that first.

yum install erlang

2. Get the RPM downloaded for RabbitMQ latest version here I have used (3.2.2)

sudo wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.2.2/rabbitmq-server-3.2.2-1.noarch.rpm

3. Import rabbitmq-signing-key-public.asc for public key signing

sudo rpm –import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc

4. Install the rpm downloaded

yum install rabbitmq-server-3.2.2-1.noarch.rpm

5. We have to auto-run RabbitMQ once your System/Server is ON to do that type the below command

sudo chkconfig rabbitmq-server on

6. Start the RabbitMQ Server.

sudo service rabbitmq-server start

7. Note: Upto this point. You can access your rabbitmq only via command prompt. If you want to enable the web console, then use the below command

sudo rabbitmq-plugins enable rabbitmq_management

After the above command is done. Your RabbitMQ will work by default on port 15672. Enable that port in your system.

Then restart or stop/start rabbitmq service again.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: