How to Install Nginx with Yum on CentOS

Nginx is a popular lightweight alternative to Apache. 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

  • payment
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Install and Run UnixBench on CentOS or Debian VPS

  UnixBench is a popular server benchmarking tool. To install and run UnixBench, just do the...

How to Update cPanel License Key / Run License Script

To run the cPanel License Key update script (perhaps if you've upgraded from a trial license, or...

How to Update VPS Timezone (OpenVZ)

Your OpenVZ will reflect the host server's time settings by default; however, it is possible to...

How to Setup Ruby on Rails for CentOS/Fedora VPS

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

How to Install rTorrent/ruTorrent Seedbox on Ubuntu VPS

This tutorial will guide you through the installation of libtorrent 0.13.0, rTorrent 0.9, and the...