dev-resources.site
for different kinds of informations.
Connecting to an EC2 Instance with Ubuntu and Installing NGINX on AWS
Published at
11/23/2024
Categories
beginners
nginx
ec2
aws
Author
Precious Oladele
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.
- Launch instance
- name your server and click on ubuntu
- configure the Amazon Machine Image, size and type, in my case, im leaving at default
- Select/create a new pair key
- allow http to have access to web server
- cross-check your settings and launch instance
- upon completion click on view all instances
Connect to EC2 Instance
- right click on the server created and connect
Install NGINX
- A terminal will pop out. we update to the latest package by typing sudo apt-get update
- Install Nginx from Ubuntu repository by typing sudo apt-get install nginx and press y when prompted
- to check the version of nginx installed, type in nginx -v
- we can check the status of the nginx by typing sudo systemctl status nginx
- Select the created server and copy the public ip
- paste the copied public ip address in a browser
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.
Articles
12 articles in total
Efficient Scaling: An Introduction to Virtual Machine Scale Sets (VMSS
read article
Scaling the Heights: An Introduction to Azure Kubernetes Service (AKS)
read article
Click, Code, Host: A Beginner's Guide to Azure App Services
read article
Creating an EC2 Instance and Installing IIS: A Beginner's Guide
read article
Provide private storage for internal company documents
read article
Provide shared file storage for the company offices
read article
From Setup to Uptime: Creating a Highly Available Windows 11 VM
read article
Provide storage for the public website
read article
Provide storage for the IT department testing and training
read article
Connecting to an EC2 Instance with Ubuntu and Installing NGINX on AWS
currently reading
Building the Foundation: How to Connect to a Windows Virtual Machine and install Windows Server
read article
From Scratch to Server: Deploying a Linux Virtual Machine with Nginx on Azure
read article
Featured ones: