Install nginx on CentOS 6

If you want to have the latest version of nginx on your CentOS system the easiest way is to use the official yum repository from the nginx program. The version contained in the EPEL repository is quite old.

Create a new repository file:

vi /etc/yum.repos/nginx.repo

copy the yum repository information into it and save it:

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

now install nginx:

yum install nginx

If you’re looking for sample configuration files you should have a look at the nginx wiki page wiki.nginx.org there are quite a lot of good examples.

This work, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

Related posts:

  1. Install nginx on FreeBSD
  2. Install OpenERP on CentOS 6.0 with Nginx HTTP Proxy
  3. Install PostgreSQL 9.0.x on CentOS
  4. Install ntop on CentOS
  5. Install SUN/Oracle JDK on CentOS or Fedora

Post a Comment

Your email is never published nor shared. Required fields are marked *

Stop SOPA