1. Download the nginx installation package.
Step 1: Log in to the nginx official website: http://nginx.org/
Step 2: Click on the red font in the picture below to start downloading
2. Start the installation
Step 1: Place the installation package on the Linux server. I placed it in the /usr/local/down directory, and then use the following command to decompress it: .15.tar.gz
Step 2: Switch to the root user and install the necessary plug-ins: Execute the following command:
to yum -y install zlib zlib-devel openssl openssl--devel pcre pcre-devel
3. Check whether the installation is successful
Switch to the /usr/local/ directory. If the nginx directory exists, the installation is successful
The above introduces the environment construction of nginx on Linux, including the content of Linux and nginx. I hope it will be helpful to friends who are interested in PHP tutorials.