Nginx Install

Binary Releases Prebuilt Packages for Linux and BSD
Most Linux distributions and BSD variants have Nginx in the usual package repositories and they can be installed via whatever method is normally used to install software (apt-get on Debian, emerge on Gentoo, ports on FreeBSD, etc).

Be aware that these packages are often somewhat out-of-date. If you want the latest features and bugfixes, it’s recommended to build from source.

Ubuntu PPA
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.

sudo su –
echo “deb http://ppa.launchpad.net/nginx/stable/ubuntu lucid main” >> /etc/apt/sources.list
apt-key adv –keyserver keyserver.ubuntu.com –recv-keys C300EE8C
apt-get update
apt-get install nginx

or for the latest development version:

sudo su –
echo “deb http://ppa.launchpad.net/nginx/development/ubuntu lucid main” >> /etc/apt/sources.list
apt-key adv –keyserver keyserver.ubuntu.com –recv-keys C300EE8C
apt-get update
apt-get install nginx

Win32 Binaries
As of 0.7.52, Nginx is now available as an official Windows binary.

The Windows version is provided as a binary-only due to the current build process (which currently uses some Wine tools). When the build process has been cleaned up, source will be made available. Igor does not want to support build issues with the current system.

Installation:

cd c:\
unzip nginx-0.x.x.zip
ren nginx-0.x.x nginx
cd nginx
start nginx

Control:

nginx -s [ stop | quit | reopen | reload ]
For problems look in c:\nginx\logs\error.log or in EventLog.

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

Building Nginx From Source
After extracting the source, run these commands from a terminal:

./configure
make
sudo make install

By default, Nginx will be installed in /usr/local/nginx. You may change this and other options with the compile-time options.

You might also want to peruse the catalog of third-party modules, since these must be built at compile-time.

One Reply to “Nginx Install”

  1. Have you ever considered creating an ebook or guest authoring on other websites?
    I have a blog based on the same ideas you discuss and would love to have you share
    some stories/information. I know my visitors would
    enjoy your work. If you’re even remotely interested, feel free to send
    me an e-mail.

Leave a Reply