DEV Community

Fazly Fathhy
Fazly Fathhy

Posted on

Installing NGINX in linux

To install NGINX on a Linux system, follow these steps based on the Linux distribution you are using. Here's a guide for common distributions like Ubuntu/Debian and CentOS/RHEL.

Step 1: Update the Package List
*sudo apt update

Step 2: Install NGINX
*sudo apt install nginx -y

Step 3: Start and Enable NGINX
*sudo systemctl start nginx
*sudo systemctl enable nginx

Step 4: Verify the Installation

Open your browser and navigate to http:// or http://localhost.
You should see the default NGINX welcome page.

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up