How To Install NGINX on CentOS 6

*WARNING* For this how to we will be using a third party yum repository.

First we will install the third party repository provided by EPEL (Extra Packages for Enterprise Linux). More details can be found here: Fedora EPEL Project

To install the yum EPEL Repo run the below command as root:

rpm -Uhv

Now lets install NGINX:

yum -y install nginx

Now lets start NGINX:

service nginx start

You can confirm the successful install by going to:


You should be presented with the words “Welcome to nginx”

Congrats, you have now successfully installed NGINX on CentOS 6.

Wayne Egerer

Leave a Reply