Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Nginx in Linux Centos and points for attention

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to install Nginx in Linux Centos and matters needing attention. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Nginx is a high performance HTTP and reverse proxy server

A brief description of 1.Nginx

A. Nginx is a high-performance HTTP and reverse proxy server, is also an IMAP/POP3/SMTP server, the purpose of the initial development is to proxy e-mail server roommate: Igor Sysoev development, the source code is in line with BSD open source. Its characteristic is that it occupies less memory and has strong concurrency ability. There are many large websites using Nginx in China: Baidu, Taobao, Tencent and so on.

As a Http server, b.Nginx has the following basic characteristics:

B.1 handle static files, index files, and automatic indexing, and turn on file descriptor buffering.

B.2 reverse proxy acceleration without caching, simple load balancing and fault tolerance

B.3 modular structure, including filter such as gzipping,byte ranges,chunked responses and SSI-filter, if multiple SSI present in egg liquid are processed by FastCGI or other proxy servers, the process can be run in parallel without waiting for each other.

B.4 supports SSL and TLSSNI.

C.Nginx official website: http://nginx.org/

two。 Preparatory work

a. The above is a brief introduction to Nginx, if you want to know more about Nginx, please learn by yourself through the network.

b. If you want to do a good job, you must first sharpen its tools, so let's simply install Niginx under Linux. Some problems are needed in the installation process, and synchronization will be mentioned in the blog.

The installation of c.Nginx depends on the following three packages, which means the three packages that must be installed before installing Nginx, in the order I wrote:

C.1 openssl library is required for SSL function. Download address: http://www.openssl.org/

C.2 zlib library is required for gzip module. Download address: http://www.zlib.net/

C. 3 rewrite module requires a pcre library. Download address: http://www.pcre.org/

The installation package for d.Nginx can be downloaded from: http://nginx.org/en/download.html

e. Upload all the downloaded software above to the Linux system using Xftp. The upload path and software are shown in the figure:

f. The software and systems required for operation are as follows: virtual machine (Vmware), Centos system installed in the virtual machine, Xshell,Xftp, and several packages above.

g. Let's start installing the software in the order described above.

3. The openssl library and the zlib library required by the gzip module are required to install the SSL function

A (1). First of all, we install the openssl library plug-in required by the SSL feature. Note: the installation process is installed according to the file path I set under linux. The command is as follows:

A.1 tar-zxvf soft/openssl-SNAP-20160104

A.2 cd cd openssl-SNAP-20160104/

A.3. / config

A.4 make

A.5 make install

B (1). Installing the gzip module requires the zlib library to be installed in exactly the same way as openssl, which is divided into the above five steps, except that the name of the file is different, and the command is simple as follows:

B.1 tar-zxvf soft/openssl-SNAP-20160104

B.2 cd openssl-SNAP-20160104/

B.3. / configure

B.4 make

B.5 make install

b. If no error is reported, the installation is complete.

4. Pcre library is required to install rewrite module

a. Installing the rewrite module requires the pcre library to be installed in exactly the same way as openssl, which is divided into the above five steps, except that the name of the file is different, and the command is simple as follows:

A.1 tar-zxvf soft/pcre-8.38.tar.gz

On how to install Linux Centos Nginx and notes to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report