Home > Article > Backend Development > Install Nginx in linux environment
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.