← Volver al blog

How to Install Nginx Web Server

  • Xernode
  • 1 min de lectura
  • 1 de abril de 2026
Ubuntu nginx linux ubuntu installation web server

Introduction

ginx is a high-performance web server that’s lightweight, fast, and ideal for serving static and dynamic websites. This guide shows you how to install and start using Nginx on Ubuntu.

Step-by-step Guide

  1. Update your package list
    • sudo apt update
  2. Install Nginx
    • sudo apt install nginx
  3. Start and enable Nginx to launch on boot
    • sudo systemctl start nginx
    • sudo systemctl enable nginx
  4. Allow HTTP and HTTPS traffic through the firewall
    • sudo ufw allow 'Nginx Full'
  5. Check Nginx status
  6. Test Nginx in your browser
    • Visit http://your_server_ip
    • You should see the default Nginx welcome page.
  7. (Optional) Reload Nginx after making config changes
    • sudo systemctl reload nginx

Recommendations

  • Always reload or restart Nginx after editing configuration files.
  • Keep Nginx updated for security and performance.
  • Review the official documentation for advanced configuration.

Call To Action

eed a fast and reliable VPS for your web projects? Check out our hosting plans! https://xernode.com/#pricing

Related Guides