NginxInstall
Contents |
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
Jeff Waugh maintains recent versions of Nginx in his PPA.
echo "deb http://ppa.launchpad.net/jdub/devel/ubuntu hardy main" >> /etc/apt/sources.list apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E9EEF4A1 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.8.34.zip ren nginx-0.8.34 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.
Source Releases
There are three versions of Nginx available: stable (0.7.x), development (0.8.x) and legacy (0.6.x). The development branch gets new features and bugfixes sooner but might introduce new bugs as well. Once bugfixes are stabilized they are backported to the stable branch. New features may or may not be backported.
In general, the stable release is recommended, but the development release is typically quite stable as well. See the FAQ.
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.











