NGINX Repository

By | April 15, 2016

Biar ga lupa, ya ayo dicatat repository NGINX nya. Sudah lama tidak bermain – main dengan Apache, karena bagi saya NGINX lebih fast, smooth, dan tidak menggunakan banyak resource RAM.

Official Red Hat/CentOS packages

To add NGINX yum repository, create a file named /etc/yum.repos.d/nginx.repo and paste one of the configurations below:

CentOS :

name=nginx repo


name=nginx repo

Official Debian/Ubuntu packages

Append the appropriate stanza to /etc/apt/sources.list. The Pgp page explains the signing of the released packaging.

Ubuntu 10.04:

deb lucid nginx
deb-src lucid nginx

Debian 6:

deb squeeze nginx
deb-src squeeze nginx

Ubuntu PPA

This PPA is maintained by volunteers and is not distributed by It has some additional compiled-in modules and may be more fitting for your environment.

You can get the latest stable version of NGINX from the NGINX PPA on Launchpad: You will need to have root privileges to perform the following commands.

For Ubuntu 10.04 and newer:

sudo -s
nginx=stable # use nginx=development for latest development version
add-apt-repository ppa:nginx/$nginx
apt-get update
apt-get install nginx

If you get an error about add-apt-repository not existing, you will want to install python-software-properties. For other Debian/Ubuntu based distributions, you can try the lucid variant of the PPA which is the most likely to work on older package sets:

sudo -s
nginx=stable # use nginx=development for latest development version
echo "deb$nginx/ubuntu lucid main" > /etc/apt/sources.list.d/nginx-$nginx-lucid.list
apt-key adv --keyserver --recv-keys C300EE8C
apt-get update
apt-get install nginx

Official Win32 Binaries

As of NGINX 0.8.50, NGINX is now available as an official Windows binary.


cd c:
ren nginx-1.2.3 nginx
cd nginx
start nginx


nginx -s [ stop | quit | reopen | reload ]

For problems look in c:nginxlogserror.log or in EventLog.

In addition, Kevin Worthington maintains earlier Windows builds of the development branch.

Source Releases

There are currently two versions of NGINX available: stable (1.8.x), mainline (1.9.x). The mainline branch gets new features and bugfixes sooner but might introduce new bugs as well. Critical bugfixes are backported to the stable branch.

In general, the stable release is recommended, but the mainline release is typically quite stable as well. See the FAQ.


21 Apr 2015


22 Sep 2015

Source code repository is at

Older versions can be found here.

Building NGINX From Source

After extracting the source, run these commands from a terminal:

sudo make install

By default, NGINX will be installed in /usr/local/nginx. You may change this and other options with the Installation and Compile-Time Options.

Leave a Reply

Your email address will not be published. Required fields are marked *