Installing Nginx on Linux

1 min read

Authors
banner
Table of Contents

Installing Nginx on Linux

Let's install Nginx on Linux.

Prerequisites

  • Ubuntu 20.04+ or Debian 10+
  • sudo access

Step 1: Update System

bash
sudo apt update
sudo apt upgrade -y

Step 2: Install Nginx

bash
sudo apt install nginx -y

Step 3: Start Nginx

bash
sudo systemctl start nginx
sudo systemctl enable nginx

Verify

Open http://localhost - Done!

© 2026 Vijay Rajendranbuilt with Next.js & Tailwind · deployed on Vercel