Virtual private server hosting news, reviews, tips, and tutorials from an industry-leading provider.

How to Install Nginx on CentOS with Yum

Posted: January 16th, 2012 | By: | Filed under: Tutorials | Tags: , , | No Comments »

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

This article is also available in the VPS6.NET Knowledgebase:

https://vps6.net/my/knowledgebase/61/How-to-Install-Nginx-with-Yum-on-CentOS.html



Leave a Reply