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)