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

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.