Skip to main content

Download and install Nginx

Learn about sites from where to download and how to install Nginx on Windows and Linux systems. For details, see the following sections:

  • Download Nginx
  • Install and manage Nginx as a service with NSSM on Windows
  • Install and manage Nginx on Linux

Download Nginx

To download Nginx:

  1. Download the Nginx zip file from the Nginx site:
tip

Download the latest version compatible with your operating system.

  1. Unzip the downloaded file to a directory, C:\tools\nginx-1.13.0.
tip

You can also unzip the file to a location other than the recommended file path. Ensure that you provide the proper file path when following the installation instructions for Windows or Linux.

Install and manage Nginx as a service with NSSM on Windows

To install and manage Nginx:

  1. Download and install NSSM 2.24 for Windows from the NSSM site.
  2. Extract the downloaded zip file to a directory, C:\tools\nssm-2.24. Consider the directory as the home directory for NSSM, NSSM_HOME.
  3. Run the following in the windows command prompt to install NSSM as Windows Service.
cd %NSSM_HOME%
nssm.exe install
  1. In the NSSM dialog, select the Nginx executable, and then click OK.
  2. Go to Windows Services and start the Nginx service
tip

If Nginx fails to start, check the error log file at following location: C:\tools\nssm-2.24\logs\error.log

Install and manage Nginx on Linux

To install and manage Nginx on Linux follow the instructions available on the site. Set up Nginx as a load balancer for AE The settings are specified in the configuration file, C:\tools\nssm-2.24/conf/nginx.conf.