Nginx compilation and installation in centos | configure parameter Reference List

Source: Internet
Author: User
Tags openssl library

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.)

  1. -- Prefix = <path> -- nginx installation path. If not specified, the default value is/usr/local/nginx.
  2. -- 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
  3. -- Conf-Path = <path> -- the default nginx. conf path without the-C option. If not specified, the default value is <prefix>/CONF/nginx. conf.
  4. -- 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.
  5. -- 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.
  6. -- 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.
  7. -- User = <path> -- the default nginx user if no USER command is specified in nginx. conf. If not specified, the default value is nobody.
  8. -- 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.
  9. -- 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.
  10. -- With-http_dav_module -- enable ngx_http_dav_module
  11. -- With-http_flv_module -- enable ngx_http_flv_module
  12. -- With-http_gzip_module -- enable ngx_http_gzip_module, which requires support from the zlib library
  13. -- With-http_stub_status_module -- enable the server status statistics page
  14. -- 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
  15. -- With-http_rewrite_module -- enable ngx_http_rewrite_module, which requires support from the PCRE Library
  16. -- With-http_proxy_module -- enable ngx_http_proxy_module
  17. -- With-http_fastcgi_module -- enable ngx_http_fastcgi_module
  18. -- Http-client-body-temp-Path = path -- specify the path of the directory where the cache file is stored in the HTTP client request.
  19. -- Http-proxy-temp-Path = path -- specifies the path of the directory where the HTTP reverse proxy caches files.
  20. -- Http-FastCGI-temp-Path = path -- specifies the path of the directory where the HTTP FastCGI cache file is stored.
  21. -- With-mail -- enable IMAP4/POP3/SMTP proxy Module
  22. -- With-mail_ssl_module -- enable ngx_mail_ssl_module
  23. -- With-CPU-opt = CPU -- compiled for a specific CPU. Valid values include Pentium, pentiumpro, pentium3, pentium4, athlon, opteron, amd64, sparc64, and ppc64.
  24. -- With-PCRE = dir -- specifies the path of the source code of the PCRE Library
  25. -- With-PCRE-opt = options -- set additional PCRE compilation options
  26. -- With-md5 = dir -- set the source code path of the MD5 Library
  27. -- With-md5-opt = options -- set additional compilation options for the MD5 Library
  28. -- With-md5-asm -- use MD5 Assembly source code
  29. -- With-sha1 = dir -- set the sha1 Library source code path
  30. -- With-sha1-opt = options -- set additional compilation options for the sha1 Library
  31. -- With-sha1-asm -- use sha1 to compile source code
  32. -- With-zlib = dir -- set the source code path of the zlib library
  33. -- With-zlib-opt = options -- set the additional compilation options for the zlib library
  34. -- With-OpenSSL = dir -- set the source code path of the OpenSSL library
  35. -- With-OpenSSL-opt = options -- set additional compilation options for the OpenSSL library
  36. -- With-Debug -- enable debugging logs
  37. -- Add-module = path -- add a third-party module that can be found in the specified path
  38. PS: You can use Yum to install it directly. However, for practice, you can use the compilation method to install it ..
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.