Building nginx from Sources【译文-无校对】

原文:

Building nginx from Sources

The build is configured using the configure command. It defines various aspects of the system, including the methods nginx is allowed to use for connection processing. At the end it creates a Makefile.

The configure command supports the following parameters:

译文:

通过源代码方式安装

此安装方式通过configure命令方式进行。它定义了不同的系统版本,并且包含了nginx允许使用的连接处理方式。脚本的最后想差生一个Makefile文件。

配置命令支持以下相关参数:

--help

prints a help message.

译文:

输出脚本的系统的帮助信息。

原文

--prefix=path

defines a directory that will keep server files. This same directory will also be used for all relative paths set by configure (except for paths to libraries sources) and in the nginx.conf configuration file. It is set to the /usr/local/nginx directory by default.

译文:

定义一个目录用于保存相关服务器文件。该目录同时作为configure命令(libraries源文件除外)和配置文件nginx.conf中设置的相对路径的前缀。通常情况下,该目录默认是:/usr/local/nginx。

--sbin-path=path

sets the name of an nginx executable file. This name is used only during installation. By default the file is named prefix/sbin/nginx.

译文:

设置nginx可执行文件的名称。该名称仅仅在安装的时候使用。默认情况下,该路径是prefix/sbin/nginx。

--modules-path=path

defines a directory where nginx dynamic modules will be installed. By default the prefix/modules directory is used.

译文:

为动态模块设置一个安装目录。默认情况下,该目录路劲为:prefix/modules。

--conf-path=path

sets the name of an nginx.conf configuration file. If needs be, nginx can always be started with a different configuration file, by specifying it in the command-line parameter -c file. By default the file is named prefix/conf/nginx.conf.

译文:

设置nginx.conf配置文件的绝对路径。如有需要,nginx通过命令行选项-c file方式,使用不同的配置文件进行差异化启动。默认情况下,该路径为prefix/conf/nginx.conf。

--error-log-path=path

sets the name of the primary error, warnings, and diagnostic file. After installation, the file name can always be changed in the nginx.conf configuration file using the error_log directive. By default the file is named prefix/logs/error.log.

译文:

设置主要错误、告警和诊断信息的日志文件名字。在安装完毕后,可以通过配置文件指令error_log进行该文件路径的变更。默认情情况下该路径名称为:prefix/logs/error.log。

--pid-path=path

sets the name of an nginx.pid file that will store the process ID of the main process. After installation, the file name can always be changed in the nginx.conf configuration file using the pid directive. By default the file is named prefix/logs/nginx.pid.

设置nginx.pid文件的绝对路径用于保存master进程的进程id。安装完毕后,可以通过配置文件指令pid进行该路径的更改。默认情况下,该路径是:prefix/logs/nginx.pid

--lock-path=path

sets a prefix for the names of lock files. After installation, the value can always be changed in the nginx.conf configuration file using the lock_file directive. By default the value is prefix/logs/nginx.lock.

设置锁文件的路径前缀。安装完毕后,可以通过配置文件指令lock_file进行该路径的更改。默认情况下该路径是:prefix/logs/nginx.lock。

--user=name

sets the name of an unprivileged user whose credentials will be used by worker processes. After installation, the name can always be changed in the nginx.conf configuration file using the user directive. The default user name is nobody.

设置工作进程的用户归属。安装完毕以后,改名字可以通过配置文件指令user进行变更。默认情况下,该名字是:nobody。

--group=name

sets the name of a group whose credentials will be used by worker processes. After installation, the name can always be changed in the nginx.conf configuration file using the user directive. By default, a group name is set to the name of an unprivileged user.

设置工作进程的归属用户组。安装完毕后,该名字可以通过配置文件指令group进行变更。 默认情况下是:nobody。

--build=name

sets an optional nginx build name.

指定额外的编译名称。

--builddir=path

sets a build directory.

设置编译路径。

--with-select_module
--without-select_module

enables or disables building a module that allows the server to work with the select() method. This module is built automatically if the platform does not appear to support more appropriate methods such as kqueue, epoll, or /dev/poll.

开启或者关闭select_module模块。该模块允许服务器使用select方法。如果系统没有明显的支持其他方法,该模块默认是开启的。

其他方法比如:kqueue,epoll,或者是/dev/poll。

--with-poll_module
--without-poll_module

enables or disables building a module that allows the server to work with the poll() method. This module is built automatically if the platform does not appear to support more appropriate methods such as kqueue, epoll, or /dev/poll.

开启或者关闭poll_module。该模块允许服务器使用poll()方法。如果系统没有明显的支持其他方法,比如kqueue,epoll,或者/dev/poll。该模块默认是开启编译。

--with-threads

enables the use of thread pools.

开启线程池选项

--with-file-aio

enables the use of asynchronous file I/O (AIO) on FreeBSD and Linux.

开启aio功能。但是该功能依赖以系统平台是否支持。

--with-http_ssl_module

enables building a module that adds the HTTPS protocol support to an HTTP server. This module is not built by default. The OpenSSL library is required to build and run this module.

开启ssl_module模块,似的http服务支持https协议。该模块默认是不自动编译的。如果使用该模块,系统需要安装OpenSSL库。

--with-http_v2_module

enables building a module that provides support for HTTP/2. This module is not built by default.

开启http_v2模块,支持HTTP2版本。默认该模块是不开启。

--with-http_realip_module

enables building the ngx_http_realip_module module that changes the client address to the address sent in the specified header field. This module is not built by default.

开启ngx_http_realip_module模块,该模块变更客户端地址为HTTP头部指定的地址。默认情况下,该模块不开启。

--with-http_addition_module

enables building the ngx_http_addition_module module that adds text before and after a response. This module is not built by default.

开启ngx_http_addition_module模块,该模块在返回响应前后增加文本信息,默认该模块是开启的。

--with-http_xslt_module
--with-http_xslt_module=dynamic

enables building the ngx_http_xslt_module module that transforms XML responses using one or more XSLT stylesheets. This module is not built by default. The libxml2 and libxslt libraries are required to build and run this module.

开启或者关闭ngx_http_xslt_module模块,该模块可以通过XSLT将XML响应转化。该模块默认开启编译。开启本模块需要系统安装libxml2和libxslt库。

--with-http_image_filter_module
--with-http_image_filter_module=dynamic

enables building the ngx_http_image_filter_module module that transforms images in JPEG, GIF, PNG, and WebP formats. This module is not built by default.

开启或者关闭ngx_http_image_filter_module模块,该模块可以将图片格式转换为JPEG,GIF,PNG和WebP格式。默认该模块是不开启的。

--with-http_geoip_module
--with-http_geoip_module=dynamic

enables building the ngx_http_geoip_module module that creates variables depending on the client IP address and the precompiled MaxMind databases. This module is not built by default.

开启或者关闭ngx_http_geoip_module。该模块可以根据客户端IP和MAXMIND数据库创建各种变量。 默认该模块是不开启。

--with-http_sub_module

enables building the ngx_http_sub_module module that modifies a response by replacing one specified string by another. This module is not built by default.

开启或者关闭ngx_http_sub_module模块,该模块可以对响应进行字符串替换。默认该模块是不开启编译。

--with-http_dav_module

enables building the ngx_http_dav_module module that provides file management automation via the WebDAV protocol. This module is not built by default.

开启或者关闭ngx_http_dav_module。该模块允许文件通过WebDAV协议进行自动管理。默认该模块是不会开启编译。

--with-http_flv_module

enables building the ngx_http_flv_module module that provides pseudo-streaming server-side support for Flash Video (FLV) files. This module is not built by default.

开启ngx_http_flv_module模块。该模块提供服务端侧的FLV文件流服务支持。默认该模块是不会开启编译。

--with-http_mp4_module

enables building the ngx_http_mp4_module module that provides pseudo-streaming server-side support for MP4 files. This module is not built by default.

开启ngx_http_mp4_module模块。该模块提供服务端侧的MP4文件流服务支持。默认该模块是不开启编译。

--with-http_gunzip_module

enables building the ngx_http_gunzip_module module that decompresses responses with “Content-Encoding: gzip” for clients that do not support “gzip” encoding method. This module is not built by default.

开启ngx_http_gunzip_module模块。该模块能为已经客户端不支持"Content-Encoding:gzip"的响应,进行解压缩。该模块默认不开启编译。

--with-http_gzip_static_module

enables building the ngx_http_gzip_static_module module that enables sending precompressed files with the “.gz” filename extension instead of regular files. This module is not built by default.

开启ngx_http_gzip_static_module模块。该模块支持发送以".gz"为扩展名的预压缩文件替代常规文件。默认该模块不开启编译。

--with-http_auth_request_module

enables building the ngx_http_auth_request_module module that implements client authorization based on the result of a subrequest. This module is not built by default.

开启ngx_http_auth_request_module模块。该模块可根据子请求的结果实现客户端鉴权。默认该模块不开启编译。

--with-http_random_index_module

enables building the ngx_http_random_index_module module that processes requests ending with the slash character (‘/’) and picks a random file in a directory to serve as an index file. This module is not built by default.

开启ngx_http_random_index_module模块。该模块针对字符"/"结尾的请求,随机的选择一个文件作为一个index文件。默认该模块默认不开启编译。

--with-http_secure_link_module

enables building the ngx_http_secure_link_module module. This module is not built by default.

开启ngx_http_secure_link_moduel模块。该模块默认不开启编译。

--with-http_degradation_module

enables building the ngx_http_degradation_module module. This module is not built by default.

开启ngx_http_degradationg_module。该模块默认不开启。

--with-http_slice_module

enables building the ngx_http_slice_module module that splits a request into subrequests, each returning a certain range of response. The module provides more effective caching of big responses. This module is not built by default.

开启ngx_http_slice_module模块。该模块将一个请求切割多个子请求,每个返回特定范围的响应。该模块能对大响应进行高效的缓存。默认该模块不开启编译。

--with-http_stub_status_module

enables building the ngx_http_stub_status_module module that provides access to basic status information. This module is not built by default.

开启ngx_http_stub_status_module模块。该模块提供基本的状态信息。该模块默认不开启编译。

--without-http_charset_module

disables building the ngx_http_charset_module module that adds the specified charset to the “Content-Type” response header field and can additionally convert data from one charset to another.

关闭ngx_http_charset_module模块。该模块增加特定的字符集在"Content-Type"响应头,并且能额外的将数据从一个字符集转换为另外一个字符集。

--without-http_gzip_module

disables building a module that compresses responses of an HTTP server. The zlib library is required to build and run this module.

关闭http服务器响应压缩的模块。该模块依赖外部库zlib。

--without-http_ssi_module

disables building the ngx_http_ssi_module module that processes SSI (Server Side Includes) commands in responses passing through it.

关闭ngx_http_ssi_module模块。该模块支持通过响应返回的服务侧的SSI指令。

--without-http_userid_module

disables building the ngx_http_userid_module module that sets cookies suitable for client identification.

关闭ngx_http_userid_module模块。该模块可根据客户端标识动态调整cookies以便适应。

--without-http_access_module

disables building the ngx_http_access_module module that allows limiting access to certain client addresses.

关闭ngx_http_access_module模块。该模块允许对某些客户端的限制访问。

--without-http_auth_basic_module

disables building the ngx_http_auth_basic_module module that allows limiting access to resources by validating the user name and password using the “HTTP Basic Authentication” protocol.

关闭ngx_http_auth_basic_module模块。该模块允许通过HTTP Basic Authentication协议对特定的资源进行用户密码鉴权的访问。

--without-http_mirror_module

disables building the ngx_http_mirror_module module that implements mirroring of an original request by creating background mirror subrequests.

关闭ngx_http_mirror_module模块。该模块通过创建后台镜像子请求的方式实现原始请求。

--without-http_autoindex_module

disables building the ngx_http_autoindex_module module that processes requests ending with the slash character (‘/’) and produces a directory listing in case the ngx_http_index_module module cannot find an index file.

关闭ngx_http_autoindex_module模块。该模块处理以"/"结尾的请求。。。。。

--without-http_geo_module

disables building the ngx_http_geo_module module that creates variables with values depending on the client IP address.

关闭ngx_http_geo_module模块,该模块可以根据客户端IP创建各种变量。

--without-http_map_module

disables building the ngx_http_map_module module that creates variables with values depending on values of other variables.

关闭ngx_http_map_module模块,该模块可以根据其他变量映射产生新的变量。

--without-http_split_clients_module

disables building the ngx_http_split_clients_module module that creates variables for A/B testing.

--without-http_referer_module

disables building the ngx_http_referer_module module that can block access to a site for requests with invalid values in the “Referer” header field.

关闭ngx_http_referer_module模块,该模块可以拦截'Referer'中非法参数的页面请求。

--without-http_rewrite_module

disables building a module that allows an HTTP server to redirect requests and change URI of requests. The PCRE library is required to build and run this module

关闭重定向以及更改请求URI的模块。该模块依赖外部库 PCRE.

--without-http_proxy_module

disables building an HTTP server proxying module.

关闭HTTP代理模块。

--without-http_fastcgi_module

disables building the ngx_http_fastcgi_module module that passes requests to a FastCGI server.

关闭ngx_http_fastcgi_module模块,该模块将一个请求转发给FastCGI服务。

--without-http_uwsgi_module

disables building the ngx_http_uwsgi_module module that passes requests to a uwsgi server.

关闭ngx_http_uwsgi_module模块。该模块将一个请求转发给一个uswgi服务。

--without-http_scgi_module

disables building the ngx_http_scgi_module module that passes requests to an SCGI server.

关闭ngx_http_scgi_module模块,该模块将一个请求转发给SCGI服务。

--without-http_grpc_module

disables building the ngx_http_grpc_module module that passes requests to a gRPC server.

关闭ngx_http_grpc_module模块,该模块将一个请求转发给一个gRPC远程过程服务。

--without-http_memcached_module

disables building the ngx_http_memcached_module module that obtains responses from a memcached server.

关闭ngx_http_memcached_module。该模块可以可以从memcached缓存服务器获取一个响应。

--without-http_limit_conn_module

disables building the ngx_http_limit_conn_module module that limits the number of connections per key, for example, the number of connections from a single IP address.

关闭ngx_http_limit_conn_module模块。限制每个key的连接数量,比如,限制某个IP地址的连接数量。

--without-http_limit_req_module

disables building the ngx_http_limit_req_module module that limits the request processing rate per key, for example, the processing rate of requests coming from a single IP address.

关闭ngx_http_limit_req_module模块。限制每一个key处理请求的频率。比如,来自同一个IP地址的请求频率。

--without-http_empty_gif_module

disables building a module that emits single-pixel transparent GIF.

禁止构建发出单像素透明GIF的模块。

--without-http_browser_module

disables building the ngx_http_browser_module module that creates variables whose values depend on the value of the “User-Agent” request header field.

关闭ngx_http_brower_module模块。该模块基于请求中的"User-Agent"内容创建变量。

--without-http_upstream_hash_module

disables building a module that implements the hash load balancing method.

禁用构建实现哈希负载平衡方法的模块。

--without-http_upstream_ip_hash_module

disables building a module that implements the ip_hash load balancing method.

禁止构建通过ip_hash方式实现负载均衡的模块。

--without-http_upstream_least_conn_module

disables building a module that implements the least_conn load balancing method.

禁止构建通过least_conn(最少连接)方式实现负载均衡的模块。

--without-http_upstream_keepalive_module

disables building a module that provides caching of connections to upstream servers.

禁止构建提供上游服务器缓存的模块。

--without-http_upstream_zone_module

disables building a module that makes it possible to store run-time state of an upstream group in a shared memory zone.

禁止存储上游服务器组运行时状态的在共享内存的区域的模块。

--with-http_perl_module
--with-http_perl_module=dynamic

enables building the embedded Perl module. This module is not built by default.

开启或者禁止构建perl模块。该模块默认是不开启构建。

--with-perl_modules_path=path

defines a directory that will keep Perl modules.

指定Perl模块的路径。

--with-perl=path

sets the name of the Perl binary.

指定perl库的路径。

--http-log-path=path

sets the name of the primary request log file of the HTTP server. After installation, the file name can always be changed in the nginx.conf configuration file using the access_log directive. By default the file is named prefix/logs/access.log.

指定http服务的请求日志的文件路径。安装以后,该文件可以通过配置文件指令access_log进行变更。默认路径为:prefix/logs/access.log

--http-client-body-temp-path=path

defines a directory for storing temporary files that hold client request bodies. After installation, the directory can always be changed in the nginx.conf configuration file using the client_body_temp_path directive. By default the directory is named prefix/client_body_temp.

指定一个临时文件,用于缓存请求的body内容。安装以后,该目录可以通过配置文件指令client_body_temp_path进行变更。默认该路径为prefix/client_body_temp。

--http-proxy-temp-path=path

defines a directory for storing temporary files with data received from proxied servers. After installation, the directory can always be changed in the nginx.conf configuration file using the proxy_temp_path directive. By default the directory is named prefix/proxy_temp.

指定一个临时目录用于缓存从代理服务器接收到的数据。安装以后,该目录可以通过配置文件指令proxy_temp_path进行变更。默认该路径是:prefix/proxy_temp。

--http-fastcgi-temp-path=path

defines a directory for storing temporary files with data received from FastCGI servers. After installation, the directory can always be changed in the nginx.conf configuration file using the fastcgi_temp_path directive. By default the directory is named prefix/fastcgi_temp.

指定一个临时目录用于缓存从FastCGI服务器接收到的数据。安装以后,该目录可以通过配置文件指令fastcgi_temp_path进行变更。默认该路径是prefix/fastcgi_temp。

--http-uwsgi-temp-path=path

defines a directory for storing temporary files with data received from uwsgi servers. After installation, the directory can always be changed in the nginx.conf configuration file using the uwsgi_temp_path directive. By default the directory is named prefix/uwsgi_temp.

指定一个临时目录用于缓存从uwsgi服务器接收到的数据。安装以后,该目录可以通过配置文件指令uwsgi_temp_path进行变更。默认该路径是prefix/uwsgi_temp。

--http-scgi-temp-path=path

defines a directory for storing temporary files with data received from SCGI servers. After installation, the directory can always be changed in the nginx.conf configuration file using the scgi_temp_path directive. By default the directory is named prefix/scgi_temp.

指定一个临时目录用于缓存从scgi服务器接收到的数据。安装以后,该目录可以通过配置文件指令scgi_temp_path进行变更。默认该路径是prefix/scgi_temp。

--without-http

disables the HTTP server.

禁止http服务器

--without-http-cache

disables HTTP cache.

禁止http缓存

--with-mail
--with-mail=dynamic

enables POP3/IMAP4/SMTP mail proxy server.

开启POP3/IMAP4/SMTP邮件代理服务器。

--with-mail_ssl_module

enables building a module that adds the SSL/TLS protocol support to the mail proxy server. This module is not built by default. The OpenSSL library is required to build and run this module.

开启邮件服务器支持SSL/TLS协议。该模块依赖于外部OpenSSL库支持。

--without-mail_pop3_module

disables the POP3 protocol in mail proxy server.

禁止邮件服务器支持POP3协议

--without-mail_imap_module

disables the IMAP protocol in mail proxy server.

禁止邮件服务器支持IMAP协议。

--without-mail_smtp_module

disables the SMTP protocol in mail proxy server.

禁止邮件服务器支持SMTP协议。

--with-stream
--with-stream=dynamic

enables building the stream module for generic TCP/UDP proxying and load balancing. This module is not built by default.

开启TCP/UDP代理服务器和负载均衡器流模块。该模块默认是不开启。

--with-stream_ssl_module

enables building a module that adds the SSL/TLS protocol support to the stream module. This module is not built by default. The OpenSSL library is required to build and run this module.

开启流模块支持SSL/TLS协议支持。该模块依赖于外部三方库 OpenSSL。

--with-stream_realip_module

enables building the ngx_stream_realip_module module that changes the client address to the address sent in the PROXY protocol header. This module is not built by default.

开启ngx_stream_realip_module编译。该模块可根据代理协议头中的客户端IP进行IP地址信息更改。默认该模块不开启。

--with-stream_geoip_module
--with-stream_geoip_module=dynamic

enables building the ngx_stream_geoip_module module that creates variables depending on the client IP address and the precompiled MaxMind databases. This module is not built by default.

开启ngx_stream_geoip_module模块。该模块可根据客户端IP地址和MaxMind数据库信息创建各种变量。该模块默认不开启。

--with-stream_ssl_preread_module

enables building the ngx_stream_ssl_preread_module module that allows extracting information from the ClientHello message without terminating SSL/TLS. This module is not built by default.

开启ngx_stream_ssl_preread_module模块。该模块支持在不终止SSL/TLS情况下,从ClientHello中解析出信息。该模块默认不开启。

--without-stream_limit_conn_module

disables building the ngx_stream_limit_conn_module module that limits the number of connections per key, for example, the number of connections from a single IP address.

关闭ngx_stream_limit_conn_module模块编译。该模块限制每个key的连接数量。比如,同一个IP地址的连接数量限制。

--without-stream_access_module

disables building the ngx_stream_access_module module that allows limiting access to certain client addresses.

关闭ngx_stream_access_module模块。该模块能针对特定IP地址访问进行访问控制。

--without-stream_geo_module

disables building the ngx_stream_geo_module module that creates variables with values depending on the client IP address.

关闭ngx_stream_geo_module模块。

--without-stream_map_module

disables building the ngx_stream_map_module module that creates variables with values depending on values of other variables.

关闭ngx_stream_map_module模块。该模块可以为特定变量创新其映射变量。

--without-stream_split_clients_module

disables building the ngx_stream_split_clients_module module that creates variables for A/B testing.

关闭ngx_stream_split_clients_module模块。该模块可以为A/B testing创建变量。

--without-stream_return_module

disables building the ngx_stream_return_module module that sends some specified value to the client and then closes the connection.

关闭ngx_stream_return_module模块。该模块给客户端发送特定的值,跟着关闭连接。

--without-stream_upstream_hash_module

disables building a module that implements the hash load balancing method.

关闭负载均衡的hash方法。

--without-stream_upstream_least_conn_module

disables building a module that implements the least_conn load balancing method.

关闭最少连接负载均衡方法。

--without-stream_upstream_zone_module

disables building a module that makes it possible to store run-time state of an upstream group in a shared memory zone.

--with-google_perftools_module

enables building the ngx_google_perftools_module module that enables profiling of nginx worker processes using Google Performance Tools. The module is intended for nginx developers and is not built by default.

--with-cpp_test_module

enables building the ngx_cpp_test_module module.

开启ngx_cpp_test_module模块。

--add-module=path

enables an external module.

增加一个外部模块

--add-dynamic-module=path

enables an external dynamic module.

增加一个外部动态模块。

--with-compat

enables dynamic modules compatibility.

开启动态模块兼容性

--with-cc=path

sets the name of the C compiler.

设置C编译器的名称

--with-cpp=path

sets the name of the C preprocessor.

设置C预编译期的名称

--with-cc-opt=parameters

sets additional parameters that will be added to the CFLAGS variable. When using the system PCRE library under FreeBSD, --with-cc-opt="-I /usr/local/include" should be specified. If the number of files supported by select() needs to be increased it can also be specified here such as this: --with-cc-opt="-D FD_SETSIZE=2048".

设置通过CFLAGS变量的额外参数。

--with-ld-opt=parameters

sets additional parameters that will be used during linking. When using the system PCRE library under FreeBSD, --with-ld-opt="-L /usr/local/lib" should be specified.

设置额外的连接参数

--with-cpu-opt=cpu

enables building per specified CPU: pentiumpentiumpropentium3pentium4athlonopteronsparc32sparc64ppc64.

针对特定CPU进行编译选项。

--without-pcre

disables the usage of the PCRE library.

关闭PCRE库

--with-pcre

forces the usage of the PCRE library.

强制使用PCRE库

--with-pcre=path

sets the path to the sources of the PCRE library. The library distribution (version 4.4 — 8.43) needs to be downloaded from the PCRE site and extracted. The rest is done by nginx’s ./configure and make. The library is required for regular expressions support in the location directive and for the ngx_http_rewrite_module module.

指定PCRE库路径。

--with-pcre-opt=parameters

sets additional build options for PCRE.

设置编译PCRE库的额外参数。

--with-pcre-jit

builds the PCRE library with “just-in-time compilation” support (1.1.12, the pcre_jit directive).

 

--with-zlib=path

sets the path to the sources of the zlib library. The library distribution (version 1.1.3 — 1.2.11) needs to be downloaded from the zlib site and extracted. The rest is done by nginx’s ./configure and make. The library is required for the ngx_http_gzip_module module.

设置zlib库的代码路径。

--with-zlib-opt=parameters

sets additional build options for zlib.

设置编译zlib库的额外编译选项。

--with-zlib-asm=cpu

enables the use of the zlib assembler sources optimized for one of the specified CPUs: pentiumpentiumpro.

指定针对特定CPU的zlib汇编代码。

--with-libatomic

forces the libatomic_ops library usage.

--with-libatomic=path

sets the path to the libatomic_ops library sources.

--with-openssl=path

sets the path to the OpenSSL library sources.

设置OpenSSL库路径

--with-openssl-opt=parameters

sets additional build options for OpenSSL.

设置编译OpenSSL库的额外参数

--with-debug

enables the debugging log.

开启debug日志。

Example of parameters usage (all of this needs to be typed in one line):

./configure
    --sbin-path=/usr/local/nginx/nginx
    --conf-path=/usr/local/nginx/nginx.conf
    --pid-path=/usr/local/nginx/nginx.pid
    --with-http_ssl_module
    --with-pcre=../pcre-8.43
    --with-zlib=../zlib-1.2.11

 

After configuration, nginx is compiled and installed using make.

执行configuration,会生成一个Makefile,通过该Makefile,nginx可以进行编译以及安装。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值