Compiling and Installing NGINX from Source
NGINX is an open-source web server software designed to use as a web server, reverse proxy, HTTP cache, and load balancer. NGINX was created by Igor Sysoev to solve the C10k problem. Below are the latest statistics of the marketplace of Apache and NGINX web servers on the internet by netcraft.com.
This solution allows the webserver to handle 10.000 concurrent connections with maximum efficiency. Rather than creating new processes as apache does, NGINX uses event-driven architecture. At the top, the master process spawns worker processes, each worker process can handle thousands of HTTP request simultaneously. NGINX is really good at serving static content when comparing with Apache. Reverse proxy and load balancer servers are common usages of NGINX.
There are several types of installation;
- Docker image
- Nginx repository
- Operating Systems repositories
- Already compiled package(.rpm .dep .exe)
- Compiling Binary
At this post, I will explain how to compile and install NGINX web server from source code. It is recommended to install…