Installing Nginx on AWS EC2 instance

I’ve been helping clients with Oracle GoldenGate (Microservices) implementation – one thing that keeps coming up is how Nginx is installed.  Each environment has different approaches.  I wrote how to install this on Oracle Enterprise Linux in an earlier approach.  Now, I have to provide a way to install Nginx on the AWS EC2 instance to support Oracle GoldenGate (Microservices).

Before installing NGINX, ensure that you have an active EC2 compute node on AWS.  In my case, I’m using an EC2 instance on the AWS Free Tier.

Now that I have an EC2 compute node, the first thing to do is SSH into it.

$ ssh -I ~/.ssh/rd-usf-tst.pem ec2-user@<public-ip-address>

ssh-aws-ec2.png

Note: The pem file permissions should be 400 (chmod 400).  Then ssh’ing into the EC2 node will go straight through.

With being logged into the ECS instance, you’ll need to su over to the root user.

$ sudo su - 

ssh-ec2-root.png

After logging in as the root user, you’ll need to run “amazon-linux-extras” to get nginx installed.  

$ amazon-linux-extras install nginx1.12

aws-extras-1.png

What is interesting after confirming installation, the AWS output says that the “extra” items has reached the end of support.  From what I can tell this really doesn’t mean anything other than AWS needs to update it soon.  Just be aware.

To confirm that NGINX has been installed, use the “list” sub-command for “yum”.

$ yum list install nginx

yum-install-nginx.png

Now with NGINX installed, you can configure Oracle GoldenGate (Microservices) to use it.

Enjoy!!

 

Please follow and like:

Enquire now

Give us a call or fill in the form below and we will contact you. We endeavor to answer all inquiries within 24 hours on business days.