Nginx is a high-performance Web server is also very good use of reverse proxy server, can achieve load balancing, static and dynamic separation strategy, under the Linux used very much. The following is a http://nginx.org/en/download.html installation process that requires knowledge of the Linux network and the configuration of the Yum source to be familiar to download and pass to the server. The first step is to decompress TAR-ZXVF nginx-1.13.1.tar.gz
Go to the nginx-1.13.1 directory and view the files below
Found that Nginx is published through the source package, and Nginx is written in C, so you need to install C/D + + compiler yum Install gcc
As above, GCC has been installed, below to install Nginx
Detected finally, found that the dependent Pcre library does not, the following we to install Pcre https://ftp.pcre.org/pub/pcre/pcre after the download is also to give tar.gz files, first to unzip it TAR-ZXVF Pcre-8.00.tar.gz
After the decompression is complete with the following files, still is the source installation
Say we g++ not find, we come to install g++ yum install gcc-c++
Come back and continue installing Pcre./configuremake Install
Pcre installation complete, go back to install Nginx
Missing zlib, we need to install zlib Http://www.zlib.net/zlib again tar.gz to manage, first unzip
Found that zlib is also managed by the source package, to install zlib./configuremake install installed, in to install Nginx./configuremake Install the installation is finally successful. The software was installed to the/usr/local/nginx boot nginx./usr/local/nginx/sbin/nginx access Nginx (IP address: 192.168.100.100, port number:)/HTTP/ The 192.168.100.100:8080/nginx was installed successfully.
Stop Nginx nginx-s Stop restart Nginx nginx-s Reload Summary: Install Nginx under Linux, first need to install gcc-c++ compiler. Then install Nginx-dependent pcre and zlib packages. The final installation of Nginx can be.
Linux Nginx Installation/start-up/restart/stop