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:  Cài đặt và sử dụng pipenv với Python 3.6 trên Ubuntu 18.04

3 thoughts on “How to install Nginx on Centos 6 in 4 steps”

Leave a Reply

Your email address will not be published. Required fields are marked *