Install nginx, pcre, zlib, and openssl in linux

Source: Internet
Author: User
Tags openssl library
1. install the latest version of the PCRE library before installing nginx... 1. install the PCRE library before installing nginx
 
Latest ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
 
Tar-zxvf pcre-8.21.tar.gz, unzipped Directory: pcre-8.21
 
Then enter the cd pcre-8.21 for configuration, compilation, installation
 
Configuration
 
./Configure or./config
 
Compile
 
Make
 
Install
 
Make install
 
 
2. install the zlib library
 
Tar-zxvf zlib-1.2.5.tar.gz
Cd zlib-1.2.5
 
./Configure
 
Make
 
Makeinstall
 
 
3. install the openSSL library
 
Download Page: http://www.openssl.org/source/
 
Tar-zxvf openssl-1.0.0.tar.gz, unzipped Directory: openssl-1.0.0
 
Then enter the cd openssl-1.0.0 for configuration, compilation, installation
 
Configuration
 
./Configure or./config
 
Compile
 
Make
 
Install
 
Make install
 
4. make sure that the above three libraries are installed and then install nginx
 
Tar zxvf nginx-1.1.12.tar.gz
Cd nginx-1.1.12/
./Configure -- user = root -- group = root -- prefix =/usr/local/nginx -- with-http_stub_status_module -- with-openssl =/usr/local/ssl/include/openssl
Make & make install
Cd ../
 
After the installation is complete, an nginx directory is displayed in/usr/local. OK.


From the hand of God

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.