How to build Nginx from Source Code | How to add module in Nginx after building from Source



How to build Nginx from Source Code | How to add module in Nginx after building from Source

How to build Nginx from Source Code | How to add module in Nginx after building from Source

In this video, I am going to explain how to build and install the Nginx from source code?
Steps:
Download Nginx tarball from nginx.org.
wget https://nginx.org/download/nginx-1.16.1.tar.gz
tar -xf nginx-1.16.1.tar.gz
cd nginx-1.16.1/
apt-get install build-essential
./configure
apt-get install zlib* gzip* libssl-dev
./configure –sbin-path=/usr/bin/nginx –conf-path=/etc/nginx/nginx.conf –error-log-path=/var/log/nginx/error.log –http-log-path=/var/log/nginx/access.log –with-pcre –pid-path=/var/run/nginx.pid
make
make install
nginx -V

Nginx Play List:
https://www.youtube.com/watch?v=1fIN_clMig8&list=PL10Ao–Mok8MgVMkUqsqnnYRoFtL9P81m

Comments are closed.