FAQ

Page Discussion History

Difference between revisions of "GettingStarted"

(deleted "why nginx" section. it's redundant and out-of-date.)
 
(Platform-specific Notes and Builds)
 
Line 19: Line 19:
 
== Platform-specific Notes and Builds ==
 
== Platform-specific Notes and Builds ==
 
#  [[NginxPlatformUbuntu| Notes on building Nginx on Ubuntu]]  
 
#  [[NginxPlatformUbuntu| Notes on building Nginx on Ubuntu]]  
#  [http://insecure.no/wiki/Ubinscripts Ubuntu Easy installer script with PHP support and MySQL]
 
 
#  [[NginxPlatformFedora| Installing Nginx on Fedora, RHEL or CentOS]]  
 
#  [[NginxPlatformFedora| Installing Nginx on Fedora, RHEL or CentOS]]  
 
#  [[NginxPlatformGentoo| How to get the latest Nginx on Gentoo]]  
 
#  [[NginxPlatformGentoo| How to get the latest Nginx on Gentoo]]  
Line 25: Line 24:
 
#  [http://nginx.darwinports.com/ How to Compile nginx on MacOSX]  
 
#  [http://nginx.darwinports.com/ How to Compile nginx on MacOSX]  
 
#  [http://dotimes.com/slackbuilds/nginx/ Nginx building script for Slackware]  
 
#  [http://dotimes.com/slackbuilds/nginx/ Nginx building script for Slackware]  
#  [http://www.kevinworthington.com/nginx-for-windows/ Nginx for Windows (32-bit); development, stable, and legacy binaries available]  
+
#  [http://www.kevinworthington.com/nginx-for-windows/ Nginx for Windows (32-bit); development, stable, and legacy binaries available]
 +
 
 
== Running Nginx ==
 
== 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:
 
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:

Latest revision as of 03:15, 26 September 2012

Contents

Requirements

  • gzip module requires zlib library
  • rewrite module requires pcre library
  • ssl support requires openssl library

Download

Go to the Main Install Page of this wiki to download Nginx. Alternatively, here is a link to the English download page and the original Russian 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. Installing Nginx on Fedora, RHEL or CentOS
  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