Install Nginx on CentOS with Yum

Nginx is a popular lightweight alternative to Apache. Installing it with the yum package manager is simple:

# yum update

# rpm -Uvh

# 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:

Privacy Preferences
When you visit our website, it may store information through your browser from specific services, usually in form of cookies. Here you can change your privacy preferences. Please note that blocking some types of cookies may impact your experience on our website and the services we offer.