Install Nginx & passenger in CentOS 6.x

Nginx Installation

First of all, nginx is not a repo available under yum. But you can install epel, through which install nginx.

1. Install EPEL
yum install epel-release

OR

download http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo rpm -iUvh epel-release-6-8.noarch.rpm

2. Check EPEL repo
yum repolist

You should get

HPIT-v2cloud-RedHat-nover-x86_64                  HPIT-v2cloud-RedHat-nover-x86_64  0
HPIT-v2cloud-nodist-nover-noarch                      HPIT-v2cloud-nodist-nover-noarch   22
HPIT-v2cloud-nodist-nover-x86_64                     HPIT-v2cloud-nodist-nover-x86_64    3
RedHat-6.5Server-x86_64-Server                        RedHat Linux 6.5Server - os - x86_64 - Server
RedHat-updates-QPK-6Server-x86_64                RedHat-updates-QPK-6Server-x86_64
centos-gluster37                                                    CentOS-6Server - Gluster 3.7
*epel                                                                     Extra Packages for Enterprise Linux 6 - x86_64


3. yum install nginx

Passenger Installation


1. Add passenger repo
sudo curl --fail -sSLo /etc/yum.repos.d/passenger.repo https://oss-binaries.phusionpassenger.com/yum/definitions/el-passenger.repo
2. sudo yum install -y passenger


Configure nginx and start your apps :)

Comments

Popular posts from this blog

Rails Kaminari - Ajax pagination

Rails 4, MySQL, and Emoji (Mysql2::Error: Incorrect string value: '\xF0\x9F\x8C\x9D')