Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Install Nginx on RHEL 6.6

Martin O'Connor edited this page Jun 8, 2016 · 5 revisions

Install Nginx based on the documentation found on their site:

https://www.nginx.com/resources/wiki/start/topics/tutorials/install/

Important Notice:

Not everything in the above instructions worked for us, so you can follow our steps below:

Add a yum repo for Nginx.

First edit the following file:

/etc/yum.repos.d/nginx.repo

and paste the following lines into the file (this is where we explicitly specify the release version):

[nginx]
name=nginx repo
#baseurl=http://nginx.org/packages/rhel/$releasever/$basearch/
baseurl=http://nginx.org/packages/rhel/6/$basearch/
gpgcheck=0
enabled=1

Check if yum sees the correct version of Nginx using one of the following commands:

yum list | grep nginx
yum info nginx
yum search nginx

Install Nginx:

yum install nginx

Add the service:

chkconfig nginx on

Start the service:

service nginx start
Clone this wiki locally