How to install Nginx on Centos 6 in 4 steps

Nginx is a fast & lightweight web server widely used for reverse proxy before Apache in many web applications.

In this series about Nginx:

Step 1: Add epel-release

By default, we dont have epel-release repository. Run this command to add this repo

sudo yum install -y epel-release

Step 2: Install Nginx

Now install Nginx with this command

sudo yum install nginx

Step 3: Enable Nginx auto start at system boots

sudo systemctl enable nginx

Step 4: Start Nginx

sudo systemctl start nginx
Related:  Phím tắt mở terminal trên Ubuntu & Lubuntu