Installing Nginx under Linux installation

Source: Internet
Author: User

Nginx Installation Preparation
1. System Package Preparation
Prce rewrite (redirect) module requires http://www.pcre.org
Zlib gzip module requires http://www.zlib.net
The OpenSSL SSL feature requires https://www.openssl.org
Nginx installation Package
Nginx_upstream_check load based cookie session hold function
Nginx-goodies-nginx-sticky Background server check function https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/downloads

2. Create an Nginx user
useradd-d/home/nginx-u-P 123456 nginx

3. Unpack each package
Cd/home/nginx
Tar-xzf +.tar.gz suffix name of the package
Unzip +.zip suffix name of the package

4. Compiling files
CD nginx+ version number directory
./configure--prefix=/home/nginx/nginx--with-pcre=/home/nginx/pcre--with-zlib=/home/nginx/zlib--with-openssl=/ Home/nginx/openssl--user=nginx--group=nginx

5.make Installation
Make && make install

As long as no report error is installed properly
MAKE[1]: Leaving directory '/home/nginx/nginx-1.11.3 '
Because I have re-specified a new directory for Nginx, otherwise the default is to point to/usr/local/nginx
Because the Nginx user cannot create the Nginx directory under/ure/local, the directory will be error-not specified.

Installing Nginx under Linux installation

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.