CentOS under the source code installation Nginx detailed procedures and methods

Source: Internet
Author: User
Tags openssl
1. Installation Dependent Pcre Package
Cd/usr/local/src
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.39.tar.gz
TAR-ZXVF pcre-8.37.tar.gz
CD pcre-8.34
./configure
Make
Make install


2. Installation Dependent Zlib Package
Cd/usr/local/src

wget http://zlib.net/zlib-1.2.11.tar.gz
TAR-ZXVF zlib-1.2.11.tar.gz
CD zlib-1.2.11
./configure
Make
Make install


3. Installation Dependent OpenSSL package
Cd/usr/local/src
wget https://www.openssl.org/source/openssl-1.0.1t.tar.gz
TAR-ZXVF openssl-1.0.1t.tar.gz


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




4. Nginx installation (after installation of the above three dependencies)
Cd/usr/local
wget http://nginx.org/download/nginx-1.9.0.tar.gz
TAR-ZXVF nginx-1.9.0.tar.gz
CD nginx-1.9.0
./configure && make && make install
Start/usr/local/nginx/sbin/nginx




If this error occurs
Error while loading shared Libraries:libpcre.so.1:cannot open Shared object file:no such file or directory


is executed as follows:


Ln-s/usr/local/lib/libpcre.so.1/lib64/
Related Article

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.