How to Install Nginx with Yum on a CentOS VPS

Nginx (pronounced engine-x) is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. Igor Sysoev started development of Nginx in 2002, with the first public release in 2004. Nginx now hosts nearly 12.18% (22.2M) of active sites across all domains. Nginx is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption.

Nginx is one of a handful of servers written to address the C10K problem. Unlike traditional servers, Nginx doesn't rely on threads to handle requests. Instead it uses a much more scalable event-driven (asynchronous) architecture. This architecture uses small, but more importantly, predictable amounts of memory under load.

Even if you don't expect to handle thousands of simultaneous requests, you can still benefit from Nginx's high-performance and small memory footprint. Nginx scales in all directions: from the smallest VPS all the way up to clusters of servers.

Nginx powers several high-visibility sites, such as Netflix, Hulu, Pinterest, CloudFlare, Airbnb, WordPress.com, GitHub, SoundCloud, Zynga, Eventbrite, Zappos, Media Temple, Heroku, RightScale, Engine Yard and NetDNA

Installing it with the yum package manager is simple:

# yum update

 

# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5Server/x86_64/epel-release-5-4.noarch.rpm

# yum install nginx

 

Start Nginx:

 

# /etc/init.d/nginx start

Check if Nginx is running at: http://xx.xx.xx.xx - You should see a default Nginx page.

Set Nginx to start automatically in case of reboot:

 

# /sbin/chkconfig nginx on

For more information, see: http://wiki.nginx.org

 

 


Was this answer helpful?

 Print this Article

Also Read

Installing GNOME Desktop on CentOS

Installing GNOME Desktop on CentOS is faily straightforward. Most CentOS servers are run on CLI...

Virtualmin Getting Started Guide

After deploying one of the Bitronic Technologies Virtualmin templates we recommend the following...

Installing a VNC Server on your CentOS VPS

All of Bitronic Technologies come with one user VNC access pre-installed. However if you should...

Installing a Minecraft Server on Ubuntu

Setting up a Minecraft server on Ubuntu 12.04 is a fairly easy task on the command...

How to Setup Ruby on Rails on a CentOS or Fedora VPS

This tutorial will walk you through the setup of a basic Ruby on Rails environment, including:...