Connecting to an EC2 Instance with Ubuntu and Installing NGINX on AWS

under2wenty

Precious Oladele

Posted on November 23, 2024

Connecting to an EC2 Instance with Ubuntu and Installing NGINX on AWS

INTRODUCTION

  • EC2 (Elastic Compute Cloud): A scalable virtual server in AWS used to run applications and workloads.
  • Ubuntu: A popular, open-source Linux operating system
  • AWS (Amazon Web Services): A cloud platform providing computing, storage, and networking services.
  • NGINX: is a reverse proxy and web server that is dependable and quick. It serves as a mediator between users and backend systems, distributes traffic among servers, and delivers web pages.

Creating EC2

  • to Create an EC2 instance from AWS console search for EC2 on the search bar. ec2
  • Launch instance Instance
  • name your server and click on ubuntu ubuntu
  • configure the Amazon Machine Image, size and type, in my case, im leaving at default default
  • Select/create a new pair key

blessing
pin

  • allow http to have access to web server

httpn

  • cross-check your settings and launch instance

cross check

  • upon completion click on view all instances instances

Connect to EC2 Instance

  • right click on the server created and connect

connect 123
asake

Install NGINX

  • A terminal will pop out. we update to the latest package by typing sudo apt-get update get update
  • Install Nginx from Ubuntu repository by typing sudo apt-get install nginx and press y when prompted press y
  • to check the version of nginx installed, type in nginx -v boluwatife
  • we can check the status of the nginx by typing sudo systemctl status nginx sudo systemctl
  • Select the created server and copy the public ip craete server
  • paste the copied public ip address in a browser downloaded

Conclusion

Setting up an EC2 instance with Ubuntu and installing NGINX on AWS enables you to create a scalable, high-performance web server. This process equips you to host and serve web content efficiently while making full use of AWS cloud resources.

💖 💪 🙅 🚩
under2wenty
Precious Oladele

Posted on November 23, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related