Installation steps for Linux Nginx

Source: Internet
Author: User

First, download Pcre

Official website Download: http://www.pcre.org/

# wget Http://sourceforge.net/projects/pcre/files/pcre/8.35/pcre-8.35.tar.gz/download

# cd/pcre-8.35


Second, download purge module (for deleting nginx cache)

# wget http://labs.frickle.com/files/ngx_cache_purge-2.1.tar.gz
# tar ZXVF ngx_cache_purge-2.1.tar.gz


Third, installation zlib

#./configure--prefix=/usr/local/zlib

# Make && make install


Iv. installation of OpenSSL

# wget http://www.openssl.org/source/openssl-1.0.1h.tar.gz

# CD Openssl-1.0.1h.tar.gz

# tar ZXFV openssl-1.0.1h.tar.gz

# CD OPENSSL-1.0.1H

#./config
#./config--prefix=/usr/local/openssl
# Make && make install

V. Installation of gcc-c++
# yum Install-y gcc-c++

Six, download the latest Nginx stable version for installation
# wget http://nginx.org/download/nginx-1.7.2.tar.gz
# tar ZXVF nginx-1.7.2.tar.gz
#./configure--with-pcre=/data/software/pcre-8.35--add-module=. /ngx_cache_purge-1.2--prefix=/usr/local/nginx--with-http_stub_status_module--with-http_ssl_module--with-zlib=/ Usr/local/zlib--with-openssl=/usr/local/openssl

Installation: Make && make install


Note: If it appears: Error: ' ngx_http_file_cache_node_t ' has no member named ' Length ' exception, may be ngx_cache_purge-2.1.tar.gz The version is too old to cause

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.