Breaking News
Loading...
Sunday, August 11, 2013

How to install Nginx 1.4.1 from source on Linux CentOS/RHEL/Fedora

8:32 AM

1. Introduction
Nginx is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. Igor Sysoev started development of Nginx in 2002, with the first public release in 2004. Nginx now hosts nearly 12.18% (22.2M) of active sites across all domains. Nginx is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption.
Nginx is one of a handful of servers written to address the C10K problem. Unlike traditional servers, Nginx doesn't rely on threads to handle requests. Instead it uses a much more scalable event-driven (asynchronous) architecture. This architecture uses small, but more importantly, predictable amounts of memory under load.
Even if you don't expect to handle thousands of simultaneous requests, you can still benefit from Nginx's high-performance and small memory footprint. Nginx scales in all directions: from the smallest VPS all the way up to clusters of servers. 
2.Install Nginx from source
Step 1: Download Nginx 1.4.1 
#cd /usr/src
#wget http://nginx.org/download/nginx-1.4.1.tar.gz
Step 2:Unpack
#tar -xvpzf nginx-1.4.1.tar.gz
#cd nginx-1.4.1
Step 3: Configure and install nginx
#./configure
#make
#make install

This are very useful modules you should add to your ./configure command, this is the way you can compile nginx with all this modules:
./configure --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-mail --with-mail_ssl_module --with-file-aio --with-ipv6

0 comments:

Post a Comment

 
Toggle Footer