Installing Nginx under Linux

Source: Internet
Author: User
Tags install openssl

One. Installation of Nginx dependencies

1. Installing gcc (yum-y install gcc)

Run Gcc-v to see the version information to see if the system has GCC installed

2, Installation Pcre

Yum-y Install Pcre-devel

3, installation Zlib

Yum-y Install zlib Zlib-devel

4. Installing OpenSSL

Yum-y Install OpenSSL Openssl-devel

Description: If you need to support SSL, you need to install OpenSSL

Consolidated command

Yum-y install gcc pcre pcre-devel zlib zlib-devel OpenSSL openssl-devel

Two. Installing Nginx

1, download the source package, select the stable version of the

2. Unzip to/usr/local

TAR-XZVF nginx.tar.gz-c/usr/local

3, enter the Nginx directory, execute./configure

4. Execute make

5. Execute make Install

Installing Nginx under Linux

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.