સ્થાપન માર્ગદર્શિકાઓ

ઉબુન્ટુ 22.04 પર Nginx કેવી રીતે ઇન્સ્ટોલ કરવું

વેબસાઇટ્સ અને એપ્લિકેશન્સ હોસ્ટ કરવા માટે ઉબુન્ટુ 22.04 પર Nginx વેબ સર્વર ઇન્સ્ટોલ અને ગોઠવો.

December 20, 2025 2890 દૃશ્યો

How to Install Nginx on Ubuntu 22.04

This comprehensive guide will walk you through installing Nginx on Ubuntu 22.04. Follow these steps carefully to ensure a successful installation.

Prerequisites

  • A fresh Ubuntu 22.04 server
  • Root or sudo access
  • At least 1GB of RAM
  • 10GB of available disk space

Step 1: Update System Packages

First, ensure your system is up to date:

sudo apt update

Step 2: Install Dependencies

Install required dependencies:

sudo apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring -y

Step 3: Install Nginx

Now install Nginx using the package manager:

sudo apt install nginx -y

Step 4: Start and Enable Service

Start the Nginx service and enable it to run on boot:

sudo systemctl start nginx
sudo systemctl enable nginx

Step 5: Configure Nginx

Edit the configuration file located at /etc/nginx/nginx.conf:

sudo nano /etc/nginx/nginx.conf

Step 6: Verify Installation

Check that Nginx is running correctly:

sudo nginx -t
sudo systemctl status nginx

Conclusion

Congratulations! You now have Nginx running on Ubuntu 22.04. For additional configuration options, refer to the official Nginx documentation.

આ લેખને રેટ કરો

-
Loading...

દસ્તાવેજો શોધો
સ્થાપન માર્ગદર્શિકાઓ

બધા લેખો જુઓ