4. Options supported by nginx configure script. (You can use the./configure -- Help Command to view the compilation options that can be selected by nginx. Only the commonly used options are listed below.)
- -- Prefix = <path> -- nginx installation path. If not specified, the default value is/usr/local/nginx.
- -- Sbin-Path = <path> -- nginx Executable File Installation path. It can only be specified during installation. If it is not specified, the default value is <prefix>/sbin/nginx
- -- Conf-Path = <path> -- the default nginx. conf path without the-C option. If not specified, the default value is <prefix>/CONF/nginx. conf.
- -- PID-Path = <path> -- if no PID command is specified in nginx. conf, the default nginx. PID path is used. If not specified, the default value is <prefix>/logs/nginx. conf.
- -- Error-log-Path = <path> -- the default error log path when the error_log command is not specified in nginx. conf. If not specified, the default value is <prefix>/logs/error. log.
- -- Http-log-Path = <path> -- the default access log path when no access_log command is specified in nginx. conf. If not specified, the default value is <path>/logs/access. log.
- -- User = <path> -- the default nginx user if no USER command is specified in nginx. conf. If not specified, the default value is nobody.
- -- Group = <path> -- if no USER command is specified in nginx. conf, the default nginx group is used. If no USER command is specified, the default group is nobody.
- -- With-http_ssl_module -- enable the http ssl module so that nginx can support HTTPS requests. OpenSSL must be installed in this module, which is libssl On Debian.
- -- With-http_dav_module -- enable ngx_http_dav_module
- -- With-http_flv_module -- enable ngx_http_flv_module
- -- With-http_gzip_module -- enable ngx_http_gzip_module, which requires support from the zlib library
- -- With-http_stub_status_module -- enable the server status statistics page
- -- With-http_referer_module -- enable ngx_http_referer_module, when the browser sends a request to the Web server, usually with Referer, tell the server from which page Link, the server can obtain some information for processing
- -- With-http_rewrite_module -- enable ngx_http_rewrite_module, which requires support from the PCRE Library
- -- With-http_proxy_module -- enable ngx_http_proxy_module
- -- With-http_fastcgi_module -- enable ngx_http_fastcgi_module
- -- Http-client-body-temp-Path = path -- specify the path of the directory where the cache file is stored in the HTTP client request.
- -- Http-proxy-temp-Path = path -- specifies the path of the directory where the HTTP reverse proxy caches files.
- -- Http-FastCGI-temp-Path = path -- specifies the path of the directory where the HTTP FastCGI cache file is stored.
- -- With-mail -- enable IMAP4/POP3/SMTP proxy Module
- -- With-mail_ssl_module -- enable ngx_mail_ssl_module
- -- With-CPU-opt = CPU -- compiled for a specific CPU. Valid values include Pentium, pentiumpro, pentium3, pentium4, athlon, opteron, amd64, sparc64, and ppc64.
- -- With-PCRE = dir -- specifies the path of the source code of the PCRE Library
- -- With-PCRE-opt = options -- set additional PCRE compilation options
- -- With-md5 = dir -- set the source code path of the MD5 Library
- -- With-md5-opt = options -- set additional compilation options for the MD5 Library
- -- With-md5-asm -- use MD5 Assembly source code
- -- With-sha1 = dir -- set the sha1 Library source code path
- -- With-sha1-opt = options -- set additional compilation options for the sha1 Library
- -- With-sha1-asm -- use sha1 to compile source code
- -- With-zlib = dir -- set the source code path of the zlib library
- -- With-zlib-opt = options -- set the additional compilation options for the zlib library
- -- With-OpenSSL = dir -- set the source code path of the OpenSSL library
- -- With-OpenSSL-opt = options -- set additional compilation options for the OpenSSL library
- -- With-Debug -- enable debugging logs
- -- Add-module = path -- add a third-party module that can be found in the specified path
- PS: You can use Yum to install it directly. However, for practice, you can use the compilation method to install it ..