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:
- Download the Nginx zip file from the Nginx site:
Download the latest version compatible with your operating system.
- Unzip the downloaded file to a directory, C:\tools\nginx-1.13.0.
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:
- Download and install NSSM 2.24 for Windows from the NSSM site.
- Extract the downloaded zip file to a directory, C:\tools\nssm-2.24. Consider the directory as the home directory for NSSM, NSSM_HOME.
- Run the following in the windows command prompt to install NSSM as Windows Service.
cd %NSSM_HOME%
nssm.exe install
- In the NSSM dialog, select the Nginx executable, and then click OK.
- Go to Windows Services and start the Nginx service
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.