I. Noun interpretation the 1.1 GCC GNU Compiler Suite (GNU Compiler Collection) includes the front end of C, C + +, objective-c, Fortran, Java, Ada, and go languages, as well as libraries for these languages (such as libstdc++, LIBGCJ, etc.). The original purpose of GCC is a compiler specifically written for the GNU operating system. The GNU system is completely free software. Here, the meaning of "freedom" is that it respects the freedom of the user. 1.2 PCRE PCRE (perl Compatible Regular Expressions) is a Perl library that includes a Perl-compatible regular expression library. These are useful when performing regular expression pattern matching with the same syntax and semantics as Perl 5. 1.3 OpenSSL OpenSSL is a Secure Sockets Layer cipher library that includes key cryptographic algorithms, common key and certificate encapsulation management functions, and SSL protocols, and provides a rich set of applications for testing or other purposes. 1.4 zlib zlib is a library of functions for data compression, developed by Jean-loup Gailly and Mark Adler and published on May 1, 1995 in the first edition of version 0.9. Zlib uses the DEFLATE algorithm, originally written for the Libpng function library, and later widely used by many software. This library is free software and uses zlib authorization. As of March 2007, Zlib is an open-source project that is included in Coverity's U.S. Department of Homeland Security sponsor's choice to continue the review. Nginx is written in C and needs to be compiled with GCC; nginx rewrite and HTTP modules use Pcre ; The gzip in Nginx is used to zlib. So install nginx before installing the 4 kinds of libraries described above
Use the command "GCC" to see if GCC is installed, and if "Gcc:no input Files" message appears, the Yum install gcc//is installed to see the installed Gccyum list installed gcc// Install Pcreyum install-y pcre pcre-devel//view installed Pcreyum List installed pcre//install zlib yum install-y zlib zlib-devel// Check See already installed Zlibyum List installed zlib//install Opensslyum install-y OpenSSL openssl-devel//view installed Opensslyum List installed O Penssl
Second, download and install
Download, unzip, configure, compile, install from the official address (http://nginx.org/):
1. Download Cd/home/wget http://nginx.org/download/nginx-1.10.3.tar.gz 2. Decompression: TAR-ZXVF nginx-1.10.3.tar.gz3. Configuration: CD nginx-1.10.3 into the Nginx extract directory./configure4. Compile and install: Makemake install5. Find installation path: Whereis Nginx
The default installation path is:/usr/local/nginx; jump to its directory under the Sbin path, you can start or stop it.
The installation is complete!
Installing Nginx in Linux