NGINX for Ubuntu 16.04
To compile NGINX Community Edition 1.14.2 for PingIntelligence for APIs, complete the following steps:
-
Download the NGINX community version:
# wget https://nginx.org/download/nginx-1.14.2.tar.gz
-
Untar the NGINX file:
# tar -xvzf nginx-1.14.2.tar.gz
-
Change directory to
nginx-1.14.2
# cd nginx-1.14.2
-
Compile and install NGINX by running the following command: Note that these options for compiling NGINX are in addition to your environment specific options.
# ./configure --with-compat --with-http_ssl_module
--with-compat
: This option enables NGINX to load dynamic modules.--with_http_ssl_module
: This flag is used configure SSL support in NGINX. -
Run the
make
command to compile NGINX:# make
-
Run the
make install
command to install NGINX:# sudo make install
-
Verify the compilation by entering the following command:
# sudo /usr/local/nginx/sbin/nginx -V
The output of the above command should display --with-compat
and --with_http_ssl_module
flags.