Why Nginx?

Nginx is a high-performance web and proxy server. It has a lot of features, but it's not for everyone. People generally use Nginx:

To learn more about Nginx's features and performance, check out the Feature Overview and Testimonials pages.

Requirements

Download

See the official download page.

Installation

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.

Platform-specific Notes and Builds

  1. Notes on building Nginx on Ubuntu

  2. Nginx 0.6.x builds for Fedora 8

  3. How to get the latest Nginx on Gentoo

  4. x86/64 build for Solaris

  5. How to Compile nginx on MacOSX

  6. Nginx building script for Slackware

  7. Nginx for Windows (32-bit); development, stable, and legacy binaries available

Running Nginx

Start the server by running /usr/local/nginx/sbin/nginx as root. After editing the configuration file at /usr/local/nginx/conf/nginx.conf to your liking, you can reload the configuration with:

  kill -HUP `cat /usr/local/nginx/logs/nginx.pid`

The location of nginx.pid might be different on your machine. For Ubuntu, it is located at:

  /var/run/nginx.pid

See also:

Advanced topics

NginxGettingStarted (last edited 2008-07-08 14:00:28 by KevinWorthington)