05 October, 2012

How to Install NGINX on CentOS

This is the easiest way to install nginx on CentOS:

Create a new repository file:
nano /etc/yum.repos.d/nginx.repo
Copy the yum repository information into it and save it:

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/
gpgcheck=0
enabled=1

Now install nginx:
yum install nginx
Then start nginx:
service nginx start

0 comments :

Post a Comment