Nginx's official website is www.nginx.org Nginx is: http://nginx.org/en/download.html because the design of the official website is very concise and not very air, so we can easily find what we need. Open page found there are three versions, respectively mainline version (development), Stable version (stable version), legact version (historical stable version). Here we download the latest stable version of nginx-1.6.2. Before installing Nginx, we need to make sure that the Gcc,openssl-devel,pcre-devel,zlib-devel Software library is installed on the system. We use Yum to install it here. After installing the software library on the CD, we will download the Nginx. Download command we use wget http://nginx.org/download/nginx-1.6.2.tar.gz download finished, we unzip, after decompression into the Nginx Directory Decompression command is tar zxvf Nginx-1.6.2.tar.gz below we start to set up, compile and install nginx run./configure--with-http_stub_status_module--with-http_gzip_static_module --without-http_rewrite_module--with-pcre--prefix=/usr/local/nginx Run make && do install to compile and install commands to run, Our Nginx installation is complete. If you want to run PHP do not forget to do some configuration after installation to access, nginx default installation is complete, the Web page file directory exists in the/usr/local/nginx/html directory
CentOS Linux under the installation of Nginx compiler detailed