Linux, nginx: nginx build in linux environment 1: Download the nginx installation package. step 1: log on to nginx official website: nginx.org Step 2: Click the red font section to start downloading. Step 2: install the installation package on the linux server, I put it in the usrlocaldown directory and decompress it with the following command: 1. download the nginx installation package.
Step 1: Log onto nginx official website: http://nginx.org/
Step 2: Click the font in red to start downloading.
II. start installation
Step 1: put the installation package on the linux server, I put it in the/usr/local/down directory, and then decompress it with the following command ,:
Tar-zxvf nginx-1.9.15.tar.gz
Step 2: switch to the root user and install the necessary plug-ins: execute the following command:
Yum-y install gcc-c ++ autoconf automake make
Yum-y install zlib-devel openssl -- devel pcre-devel
III. check whether the installation is successful
Switch to the/usr/local/Directory. if The nginx directory exists, the installation is successful.
The above describes how to set up nginx in a linux environment, including Linux and nginx, and hope to help those who are interested in PHP tutorials.