Install Nginx,centos installation Nginx under Linux

Source: Internet
Author: User
Tags openssl

Beginner Nginx, for simple installation and configuration.

One, dependence

Openssl-fips-2.0.9.tar.gz

Zlib-1.2.11.tar.gz

Pcre-8.01.tar.gz

Nginx-1.8.0.tar.gz

Share the installation package I use:/HTTP/...

Second, upload the installation package to start the installation

2.1. Installing OpenSSL

Decompression: TAR-ZXVF openssl-fips-2.0.9.tar.gz

Enter this directory: CD openssl-fips-2.0.9

Compilation configuration:./config

Installation:

Make

Make install

You see, it's installed, right?

In other words, the make command needs to have GCC installed, or it will be an error to find the GCC command

Yum-y install GCC execute the command installation (install friend complete! Display)

2.2, Installation Pcre

Approximately the same as installing OpenSSL above

Decompression: TAR-ZXVF pcre-8.01.tar.gz

Go to catalog CD pcre-8.01

Then execute:

  

./configure

Make

Make install

Installation here may be an error, incidentally, because it is a heavy-loaded system, there is nothing, the lack of g++ command

yum -y installgcc-c++  执行这个命令安装一下

2.3, installation Zlib

The steps are similar,

./configure

Make

Make install

2.4. Installing Nginx

./configure--with-pcre=. /pcre-8.01--with-zlib=. /zlib-1.2.11--with-openssl=. /openssl-fips-2.0.9 (Note that this depends on the directory to be consistent with your version)

Make

Make install

To see if the installation was successful

(This directory, because I am a temporary installation test, put it all in a heap, you can follow your own wishes)

/usr/local/nginx, there's a sbin directory in this directory.

This is the installation, and finally it starts.

Can see Nginx has succeeded, the default listening 80 port, the specific configuration needs to understand the

Browser input IP will have nginx welcome page

Well, that's it, I'm going to deploy the test project,

There are problems in the installation process Welcome to the discussion!

Install Nginx,centos installation Nginx under Linux

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.