Nginx is a relatively common server, developed by the Russians, the biggest feature is load balancing, smooth start. This blog mainly explains the installation of Nginx.
First step: Download and install Pcre. From Ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/to find the latest Pcre installation package and download, I downloaded the pcre-8.35.zip; command line input after download:
TAR-ZXVF Pcre-8.35.zip to Unzip, then enter: CD pcre-8.35 into the Pcre installation directory, and then:./configure, make and make install. This completes the installation of the Pcre.
The second step: Download Nginx, for pre-installation configuration. Find the latest nginx download from http://nginx.org/en/download.html and put it in the/home directory, I downloaded version 1.7.2, using the command: Tar zxvf nginx-1.7.2.tar.gz decompression NGINX;CD nginx-1.7.2 into the Nginx directory;./configure--prefix=/usr/local/nginx--with-http_stub_status_module configuration, and make Install to complete the installation.
Test: Enter the/usr/local/nginx/sbin directory, enter the NGINX-V, have the print Nginx version number, indicating the successful installation. You can also enter the local address in the browser, if returning Welcome to Nginx also indicates that the installation was successful.
If the trouble, you can use the Apt-get install installation, only need: sudo apt-get install nginx can, but this installation of the Nginx version is lower Oh, it seems that 1. Version of X.