LinuxMoz

Linux Stuff && Coffee

CentOS Nginx YUM Install

| Comments

The following tutorial will walk you through a CentOS Nginx install using YUM and the EPEL Repository.

To start of with make sure you have the EPEL repo installed, I recommend reading our guide for CentOS EPEL repo installation if you do not already have this installed.

How to Install Nginx CentOS 6

After installing the EPEL repo, it’s a simple case of running the following command as root:

1
yum install nginx

Your CentOS Nginx server should now be installed, you can start nginx with:

1
/etc/init.d/nginx start

If you enter your servers IP address in your web browser you should see the Nginx (EPEL) welcome page.

If you fail to see the above welcome page you might want to double check your firewall rules.

By default the Nginx web root is at /usr/share/nginx/html/

Comments