Home  >  Article  >  Backend Development  >  Install Nginx in linux environment

Install Nginx in linux environment

WBOY
WBOYOriginal
2016-08-08 09:19:04932browse

Before installation, you can visit the official website portal to download the latest source code package (centos/redhat).
Installation also requires the following tools:
yum -y install gcc gcc-c++ autoconf automake
Module dependencies:
yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel

Nginx can be installed in the Linux environment by compiling the source code. The simplest installation command is as follows:
tar -zxvf nginx-1.x.xx.tar.gz
cd nginx-1.xx
./configure
make
sudo make install

Follow the above command, nginx will be installed in the /usr/local/nginx directory by default. View nginx selectable compilation options through the ./configure –help command.

Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.

The above introduces the installation of Nginx in the Linux environment, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn