Install Nginx with Yum on CentOS

0
882

Nginx is a popular lightweight alternative to Apache.

Installing it with the yum package manager is simple:

Code:
yum update

 

Code:
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5Server/x86_64/epel-release-5-4.noarch.rpm
Code:
yum install nginx

 

Start Nginx:

Code:
/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:

Code:
/sbin/chkconfig nginx on

For more information, see: Main

NO COMMENTS

LEAVE A REPLY