Installation and use of nginx in CentOS system
Install nginx under centos The requirements for compiling Nginx are as follows: Disk space: It is necessary to ensure that there is more than 10MB of free disk space. After Nginx is installed, it will occupy about 4MB of disk space. The actual disk space requirements will vary depending on the compilation settings and whether third-party modules are installed. GCC compiler and related tools: GCC is called GNU Compiler Collection, It is a powerful and high-performance free compiler for programming development launched by the GNU community. It is one of the representative works of GNU. Currently, the languages that can be compiled include: C, C++, Objective-C, Fortran, Java, etc. You must ensure that your operating system has a GCC compiler installed. In addition, you must also install the Autoconf and Automake tools, which are used to automatically create complete Makefiles. Most current software packages use this tool to generate Makefiles, and Nginx is no exception. Under the CentOS system, you can use the yum command to install the GCC compiler and related tools: yum -y install gcc gcc-c++ autoconf automake Module dependency: Some modules of Nginx need the support of other third-party libraries, such as gzip module needs zlib library,…