Installation of the Linux Nginx

Source: Internet
Author: User
Tags install openssl openssl library

Installation of Nginx

Need to download four packages

1.zlib Library (download: http://www.zlib.net/)

2.pcre Library (download: http://www.pcre.org/)

3.openssl Library (download: http://www.openssl.org/)

4.Nginx Package (Download: http://nginx.org/en/download.html)

Installation steps

First step: Download the required installation package

Openssl-fips-2.0.9.tar.gz

Zlib-1.2.8.tar.gz

Pcre-8.35.tar.gz

Nginx-1.2.9.tar.gz

Step Two: Install openssl-fips-2.0.9.tar.gz zlib-1.2.8.tar.gz pcre-8.35.tar.gz nginx-1.2.9.tar.gz

1. Installing openssl-fips-2.0.9.tar.gz

# TAR-ZXVF openssl-fips-2.0. 9 . tar.gz # cd OpenSSL-fips-2.0. 9 # . /Config # make# make install

2. Installing zlib-1.2.8.tar.gz

# TAR-ZXVF zlib-1.2. 8 . tar.gz# CD zlib-1.2. 8 # . /Configure # make# make install

3. Installing pcre-8.35.tar.gz

# TAR-ZXVF pcre-8.35. tar.gz# cd pcre-8.35#. /Configure # make# make install

4. Installing nginx-1.2.9.tar.gz

# TAR-ZXVF nginx-1.2. 6 . tar.gz # cd Nginx-1.2. 6 # . /configure--with-pcre=. /pcre-8.35 --with-zlib=. /zlib-1.2. 8 --with-openssl=. /openssl-fips-2.0. 9 # make# make install

At this point, Nginx installation succeeded

Check if the installation was successful

# CD  /usr/local/nginx/sbin#. /nginx-t

If the following prompt appears, the installation is successful

Reference Blog: http://www.cnblogs.com/dennisit/archive/2012/12/26/2834719.html

Installation of the Linux Nginx

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.