Nginx Series Two (Installation and Startup and nginx.conf Configuration Analysis)
The installation of Nginx is relatively simple. The installation provided under Windows is a zip package. It can be installed after decompression directly, and the nginx server can be started by running nginx.exe under its installation directory For the linux version, you need to execute the following command For the above commands, ./configure is a tool for generating makefiles in linux, and the general commands are: ./configure –prefix=/home/vf/usr/local/nginx –with-http_gzip_static_module –with-http_ssl_module –with-http_stub_status_module –with-http_sub_module –with-http_realip_module –with-http_realip_module –add-module=/home/vf/usr/local/nginx-sticky-module The more important one is –prefix, which is a prefix that represents the installation location of the program. The follow-up is to pass several key parameters. For these parameters, the configuration file is modified when nginx is installed. For details, please refer to the configuration document of Nginx. After the ./configure tool, the makefile is generated, which is the specified file for linux source code installation, and then make is executed. The make command compiles according to the makefile and does not install it. There may be some errors in this step. Compare An obvious error is the absence of the PCRE library, which needs to be installed again through yum or apt-get: ./configure: error: the HTTP rewrite…