DebianNginx compilation and Installation Method

Source: Internet
Author: User
DebianNginx compilation and installation method-Debian information of the Linux release-the following is a detailed description. (Author: Happy Journey) I tested Debian in the past two days. The installation and operations are similar to those of Ubuntu. You can use apt-get to install or download the software package, however, when Debian uses apt-get install nginx, The nginx version installed by default is 0.4.13, and I want to use apt-get To install Version 0.6.32. no solution has been found yet, it should be said that you do not know how to install it. If you want to know it, you can leave a message to reply. Since apt-get cannot install version 0.6.32, only manual compilation is required.

First, you know that you need to specify pcre, zlib, and openssl for compiling nginx. Since my system does not install these packages, I will not install the deb packages. I will download these packages directly, official Website:

Http://www.zlib.net/
Http://www.openssl.org/
Http://www.pcre.org/

Download the three packages to the/opt directory, tar-xzvf *. gz unzip, and then decompress the nginx-0.6.32 package to the/opt directory, enter the nginx directory, execute:

#./Configure -- with-pcre = ../pcre-7.7 -- with-zlib = ../zlib-1.2.3 -- with-openssl = ../openssl-0.9.8g
# Make & make install

If. /configure errors occur. query problems in sequence. Generally, no errors will occur, but you must install build-essential. If not, run the following command to install the compiling environment:

# Apt-get install build-essential

The default nginx installation directory is/usr/local/nginx, including:

/Usr/local/nginx/sbin # control the nginx Startup File
/Usr/local/nginx/conf # configuration file
/Usr/local/nginx/html # default webpage File
/Usr/local/nginx/logs # Log File
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.