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

How to Install OpenVPN on CentOS VPS

  OpenVPN is an open source virtual private network (VPN) software. Follow the steps below...

Install Softaculous on CentOS cPanel/WHM VPS

Overview   The following guide will show you how to install Softaculous on a CentOS...

Install and Run UnixBench on CentOS or Debian VPS

This tutorial will cover how to  install and run UnixBench on a CentOS Linux VPS or Debian...

How to install Deluge Seedbox on an Ubuntu VPS

Though it is one of the newest seedbox Web UIs, Deluge has proven to be a tested favorite among...

How to Configure a Minecraft Server on a CentOS VPS

Once you have your Minecraft template installed and running as you can read more about...