0
0
Nginxdevops~30 mins

Nginx installation - Mini Project: Build & Apply

Choose your learning style9 modes available
Nginx installation
📖 Scenario: You are setting up a simple web server on a Linux machine using Nginx. This server will host a basic website to share information with your friends and family.
🎯 Goal: Learn how to install Nginx, start the service, and verify that it is running correctly.
📋 What You'll Learn
Install Nginx using the package manager
Start the Nginx service
Enable Nginx to start automatically on boot
Check the status of the Nginx service
💡 Why This Matters
🌍 Real World
Installing and managing Nginx is a common task for hosting websites and web applications on servers.
💼 Career
System administrators and DevOps engineers often install and configure Nginx to serve web content reliably.
Progress0 / 4 steps
1
Install Nginx
Run the command sudo apt update to update the package list, then run sudo apt install -y nginx to install Nginx.
Nginx
Need a hint?

Use apt commands with sudo to install software on Ubuntu.

2
Start and enable Nginx service
Run the command sudo systemctl start nginx to start Nginx, then run sudo systemctl enable nginx to make it start automatically on boot.
Nginx
Need a hint?

Use systemctl commands to manage services.

3
Check Nginx service status
Run the command sudo systemctl status nginx to check if Nginx is active and running.
Nginx
Need a hint?

The status command shows if the service is running.

4
Verify Nginx is serving the default page
Run the command curl -I http://localhost to see the HTTP headers and confirm Nginx is serving the default web page.
Nginx
Need a hint?

The curl -I command shows HTTP headers. Look for HTTP/1.1 200 OK to confirm success.