Home  >  Article  >  Operation and Maintenance  >  The correct way to install nginx under linux

The correct way to install nginx under linux

王林
王林forward
2020-11-25 16:33:182770browse

The correct way to install nginx under linux

The correct steps to install nginx under Linux are as follows:

(Related recommendations: nginx tutorial)

(1) Download PCRE installation package

wget http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz

(2) Unzip the installation package

tar zxvf pcre-8.35.tar.gz

(3) Enter the installation package directory

cd pcre-8.35

(4) Build nginx from source code without adding other modules

./configure

(5) Compile

make

(6) Install

make install

(7) Check pcre version

pcre-config --version

The above is the detailed content of The correct way to install nginx under linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete