Install Nginx on RHEL 6.6 - metadatacenter-attic/cedar-docs GitHub Wiki
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