Deploy nginx server in debian7

Source: Internet
Author: User
Tags install openssl

I deploy the nginx server In Debian 7 in VMware and deploy it offline. The process is as follows:

 

1. Prepare the required offline installation package

Links (the download links are provided at the end of these package articles)

2. Install PCRE

Tar zxvf pcre-8.34.tar.gz

CD pcre-8.34

./Configure

Make

Sudo make install

3. Install OpenSSL

Use the online installation method, sudo apt-Get install OpenSSL

4. Install zlib

Tar zxvf zlib-1.2.8.tar.gz

CD zlib-1.2.8

./Configure

Make

Sudo make install

Note: If this package is not installed, nginx will report "Make: *** no rule to make target 'build', needed by 'default'. Stop." error when making.

5. Install nginx

Tar zxvf nginx-1.6.2.tar.gz

CD nginx-1.6.2

./Configure

Make

Sudo make install

 

So far, nginx has been deployed and can be used.

 

In general, if online installation is adopted in Linux (APT-Get install), the software will be installed under the/usr directory. Specifically, the executable program is installed in/usr/bin, and the configuration file is installed in/usr/etc. If you use the offline installation method, for example, this method in this article (tar & CD &&. /configure & make install), which is installed in the/usr/local directory by default. The executable program is installed in/usr/local/bin, the configuration file is installed in/usr/local/etc. If you need to specify the installation directory. /use the -- prefix option to specify configure, for example. /configure -- prefix/usr/local/***. All files related to the software will be installed in the/usr/local/***/directory, for example, the executable program is installed in/usr/local/***/bin, and the configuration file is installed in/usr/local/***/etc. You can flexibly configure according to your preferences. For ease of uninstallation, you can use -- prefix to execute the installation directory. When you delete the installation directory, it is very convenient.

 

Used offline installation package download: http://yun.baidu.com/share/link? Consumer id = 1842645602 & UK = 856527867

Deploy nginx server in debian7

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.