18 Sep

NGINX Repo How to Install the Official NGINX Repo on Centos

How to install official nginx repo and keep nginx updated to the latest available version from the official repository.

To add the official nginx repo  log on to your server

add nginx yum repository, create a file named

1) nano /etc/yum.repos.d/nginx.repo 

Add the following text:

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

2) close and save changes

3) perform yum install nginx

4) perform yum update nginx to install the latest version.

 

More information on nginx have a look @ http://wiki.nginx.org/Install

Share this