Apache 编译参数集【2.4.16】中文版

[root@Lamp ~]# cd /byrd/tools/httpd-2.4.16
[root@Lamp httpd-2.4.16]# ./configure -h
`configure' configures this package to adapt to many kinds of systems.
Usage: ./configure [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
-h, --help display this help and exit(显示帮助文档)
--help=short display options specific to this package(使用short参数将只显示正在运行的当前脚本的选项,而不能列出适用于Apache配置脚本所运行的外部配置脚本的选项)
--help=recursive display the short help of all the included packages(使用recursive参数将显示所有程序包的简短描述)
-V, --version display version information and exit(显示版本信息)
-q, --quiet, --silent do not print `checking ...' messages(不显示脚本工作期间输出的”checking …”消息)
--cache-file=FILE cache test results in FILE [disabled](在FILE文件中缓存测试结果(默认禁用)。)
-C, --config-cache alias for `--cache-file=config.cache'(等价于 –cache-file=config.cache)
-n, --no-create do not create output files(configure脚本运行结束后不输出结果文件,常用于正式编译前的测试)
--srcdir=DIR find the sources in DIR [configure dir or `..'](指定源代码所在目录DIR 。[configure脚本所在目录或父目录])

Installation directories:
--prefix=PREFIX install

architecture-independent files in PREFIX
[/usr/local/apache](体系无关文件的顶级安装目录PREFIX ,也就Apache的安装目录。)
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX](体系相关文件的顶级安装目录EPREFIX ,把体系相关的文件安装到不同的位置可以方便地在不同主机之间共享体系相关的文件。)

By default, `make install' will install all the files in
`/usr/local/apache2/bin', `/usr/local/apache2/lib' etc. You can specify
an installation prefix other than `/usr/local/apache2' using `--prefix',
for instance `--prefix=$HOME'.(默认情况下,make install 将会把所有文件分别安装到/usr/local/apache2/bin , /usr/local/apache2/lib 目录下。可以用 –prefix 指定一个不同于/usr/local/apache2的安装前缀,比如:–prefix=$HOME )

For better control, use the options below.

Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin](指定用户可执行文件路径/usr/local/apache/bin/)
--sbindir=DIR system admin executables [EPREFIX/sbin](系统admin可执行目录DIR
--libexecdir=DIR program executables [EPREFIX/libexec](程序的可执行文件目录)
--sysconfdir=DIR read-only single-machine data [PREFIX/etc](系统配置文件目录)
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com](可写的体系无关数据目录DIR )
--localstatedir=DIR modifiable single-machine data [PREFIX/var](可写的单一机器数据目录DIR)
--libdir=DIR object code libraries [EPREFIX/lib](程序代码库)
--includedir=DIR C header files [PREFIX/include](头部文件)
--oldincludedir=DIR C header files for non-gcc [/usr/include](non-gcc头部文件)
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share](只读数据?共享数据目录)
--datadir=DIR read-only architecture-independent data [DATAROOTDIR](只读结构独立数据)
--infodir=DIR info documentation [DATAROOTDIR/info](info文档目录)
--localedir=DIR locale-dependent data [DATAROOTDIR/locale](本地依赖data)
--mandir=DIR man documentation [DATAROOTDIR/man](man文档)
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE](根目录)
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
--psdir=DIR ps documentation [DOCDIR]

System types:(系统参数级)
--build=BUILD configure for building on BUILD [guessed](指定编译工具所在系统的系统类型BUILD 。[config.guess脚本的检测结果])
--host=HOST cross-compile to build programs to run on HOST [BUILD](指定Apache HTTP服务器将要运行的目标系统类型HOST)
--target=TARGET configure for building compilers for TARGET [HOST](configure for building compilers for TARGET类型的系统)

Optional Features:(可选择选项)
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-layout=LAYOUT (使用名为LAYOUT的布局配置所有源代码和编译脚本。这样就允许你在安装Apache时分别指定不同文件的安装位置。config.layout文件中包含了默认布局的示例,你可以根据它创建你自己的布局。这个文件中的不同布局使用…段进行分组,其中的FOO就是布局名。默认的布局是Apache 。)
--enable-dtrace Enable DTrace probes(开启DTrace探针)
--enable-hook-probes Enable APR hook probes(开启arp钩子探针)
--enable-exception-hook Enable fatal exception hook(开启fatal例外钩子)
--enable-load-all-modules
Load all modules(加载所有模块)
--enable-maintainer-mode
Turn on debugging and compile time warnings and load
all compiled modules(使用所有警告和调试符号编译源代码,请勿用于正式服务器,它会影响性能)
--enable-debugger-mode Turn on debugging and compile time warnings and turn
off optimization(打开调试和编译时警告并关闭优化)
--enable-pie Build httpd as a Position Independent Executable(将httpd编译为位置独立的(Position Independent)可执行程序)
--enable-modules=MODULE-LIST (将MODULE-LIST静态连接进核心(可用于所有模块))
Space-separated list of modules to enable | "all" |
"most" | "few" | "none" | "reallyall"
--enable-mods-shared=MODULE-LIST(将MODULE-LIST中的所有模块都编译成DSO(可用于所有模块))
Space-separated list of shared modules to enable |
"all" | "most" | "few" | "reallyall"
--enable-mods-static=MODULE-LIST(将MODULE静态连接进核心)
Space-separated list of static modules to enable |
"all" | "most" | "few" | "reallyall"
--disable-authn-file file-based authentication control(基于文件的身份验证)
--enable-authn-dbm DBM-based authentication control(DBM的认证控制)
--enable-authn-anon anonymous user authentication control(匿名用户认证控制)
--enable-authn-dbd SQL-based authentication control(基于sql的认证控制)
--enable-authn-socache Cached authentication control(基于缓存的认证控制)
--disable-authn-core core authentication module(核心认证模块)
--disable-authz-host host-based authorization control(主机授权模块)
--disable-authz-groupfile
'require group' authorization control(组授权模块)
--disable-authz-user 'require user' authorization control(基于每个用户提供授权支持)
--enable-authz-dbm DBM-based authorization control(使用DBM数据库为认证提供支持)
--enable-authz-owner 'require file-owner' authorization control(文件所有者授权模式)
--enable-authz-dbd SQL based authorization and Login/Session support(管理SQL数据库连接,为需要数据库功能的模块提供支持)
--disable-authz-core core authorization provider vector module(核心认证模块)
--enable-authnz-ldap LDAP based authentication(基于LDAP模式认证)
--enable-authnz-fcgi FastCGI authorizer-based authentication and
authorization(FastCGI授权的认证和授权)
--disable-access-compat mod_access compatibility(mod_access兼容性)
--disable-auth-basic basic authentication(基本认证)
--enable-auth-form form authentication(form验证)
--enable-auth-digest RFC2617 Digest authentication(基于RFC2617协议认证)
--enable-allowmethods restrict allowed HTTP methods(限制运行http的方法??什么鬼?)
--enable-isapi isapi extension support(isapi扩展支持)
--enable-file-cache File cache(文件缓存)
--enable-cache dynamic file caching. At least one storage
management module (e.g. mod_cache_disk) is also
necessary.(动态文件缓存至少一个存储管理模块(如mod_cache_disk)也必要的)
--enable-cache-disk disk caching module(基于磁盘的缓冲管理器)
--enable-cache-socache shared object caching module(共享对象缓存模块)
--enable-socache-shmcb shmcb small object cache provider(shmcb小对象缓存)
--enable-socache-dbm dbm small object cache provider(sbm小对象缓存)
--enable-socache-memcache
memcache small object cache provider(memcache小对象缓存)
--enable-socache-dc distcache small object cache provider(distcache小对象缓存)
--enable-so DSO capability. This module will be automatically
enabled unless you build all modules statically.(DSO的能力。该模块将自动启用,除非你建立所有的静态模块。)
--enable-watchdog Watchdog module(watchdog模块)
--enable-macro Define and use macros in configuration files(在配置文件中定义和使用宏)
--enable-dbd Apache DBD Framework(dbd框架)
--enable-bucketeer buckets manipulation filter. Useful only for
developers and testing purposes.(过滤器?用于开发和测试)
--enable-dumpio I/O dump filter(将所有I/O操作转储到错误日志中)
--enable-echo ECHO server(一个很简单的协议演示模块)
--enable-example-hooks Example hook callback handler module(钩子回调模块)
--enable-case-filter Example uppercase conversion filter(大小写过滤模块)
--enable-case-filter-in Example uppercase conversion input filter(大小写输入过滤模块)
--enable-example-ipc Example of shared memory and mutex usage(共享内存例子)
--enable-buffer Filter Buffering(缓存过滤)
--enable-data RFC2397 data encoder(协议RFC2397数据编码)
--enable-ratelimit Output Bandwidth Limiting
--disable-reqtimeout Limit time waiting for request from client
--enable-ext-filter external filter module
--enable-request Request Body Filtering
--enable-include Server Side Includes
--disable-filter Smart Filtering
--enable-reflector Reflect request through the output filter stack
--enable-substitute response content rewrite-like filtering
--enable-sed filter request and/or response bodies through sed
--disable-charset-lite character set translation. Enabled by default only
on EBCDIC systems.
--enable-charset-lite character set translation. Enabled by default only
on EBCDIC systems.
--enable-deflate Deflate transfer encoding support
--enable-xml2enc i18n support for markup filters
--enable-proxy-html Fix HTML Links in a Reverse Proxy
--enable-http HTTP protocol handling. The http module is a basic
one that enables the server to function as an HTTP
server. It is only useful to disable it if you want
to use another protocol module instead. Don't
disable this module unless you are really sure what
you are doing. Note: This module will always be
linked statically.
--disable-mime mapping of file-extension to MIME. Disabling this
module is normally not recommended.
--enable-ldap LDAP caching and connection pooling services
--disable-log-config logging configuration. You won't be able to log
requests to the server without this module.
--enable-log-debug configurable debug logging
--enable-log-forensic forensic logging
--enable-logio input and output logging
--enable-lua Apache Lua Framework
--enable-luajit Enable LuaJit Support
--disable-env clearing/setting of ENV vars
--enable-mime-magic automagically determining MIME type
--enable-cern-meta CERN-type meta files
--enable-expires Expires header control
--disable-headers HTTP header control
--enable-ident RFC 1413 identity check
--enable-usertrack user-session tracking
--enable-unique-id per-request unique ids
--disable-setenvif basing ENV vars on headers
--disable-version determining httpd version in config files
--enable-remoteip translate header contents to an apparent client
remote_ip
--enable-proxy Apache proxy module
--enable-proxy-connect Apache proxy CONNECT module. Requires and is enabled
by --enable-proxy.
--enable-proxy-ftp Apache proxy FTP module. Requires and is enabled by
--enable-proxy.
--enable-proxy-http Apache proxy HTTP module. Requires and is enabled by
--enable-proxy.
--enable-proxy-fcgi Apache proxy FastCGI module. Requires and is enabled
by --enable-proxy.
--enable-proxy-scgi Apache proxy SCGI module. Requires and is enabled by
--enable-proxy.
--enable-proxy-fdpass Apache proxy to Unix Daemon Socket module. Requires
--enable-proxy.
--enable-proxy-wstunnel Apache proxy Websocket Tunnel module. Requires and
is enabled by --enable-proxy.
--enable-proxy-ajp Apache proxy AJP module. Requires and is enabled by
--enable-proxy.
--enable-proxy-balancer Apache proxy BALANCER module. Requires and is
enabled by --enable-proxy.
--enable-proxy-express mass reverse-proxy module. Requires --enable-proxy.
--enable-session session module
--enable-session-cookie session cookie module
--enable-session-crypto session crypto module
--enable-session-dbd session dbd module
--enable-slotmem-shm slotmem provider that uses shared memory
--enable-slotmem-plain slotmem provider that uses plain memory
--enable-ssl SSL/TLS support (mod_ssl)
--enable-ssl-staticlib-deps
link mod_ssl with dependencies of OpenSSL's static
libraries (as indicated by "pkg-config --static").
Must be specified in addition to --enable-ssl.
--enable-optional-hook-export
example optional hook exporter
--enable-optional-hook-import
example optional hook importer
--enable-optional-fn-import
example optional function importer
--enable-optional-fn-export
example optional function exporter
--enable-dialup rate limits static files to dialup modem speeds
--enable-static-support Build a statically linked version of the support
binaries
--enable-static-htpasswd
Build a statically linked version of htpasswd
--enable-static-htdigest
Build a statically linked version of htdigest
--enable-static-rotatelogs
Build a statically linked version of rotatelogs
--enable-static-logresolve
Build a statically linked version of logresolve
--enable-static-htdbm Build a statically linked version of htdbm
--enable-static-ab Build a statically linked version of ab
--enable-static-checkgid
Build a statically linked version of checkgid
--enable-static-htcacheclean
Build a statically linked version of htcacheclean
--enable-static-httxt2dbm
Build a statically linked version of httxt2dbm
--enable-static-fcgistarter
Build a statically linked version of fcgistarter
--enable-lbmethod-byrequests
Apache proxy Load balancing by request counting
--enable-lbmethod-bytraffic
Apache proxy Load balancing by traffic counting
--enable-lbmethod-bybusyness
Apache proxy Load balancing by busyness
--enable-lbmethod-heartbeat
Apache proxy Load balancing from Heartbeats
--enable-mpms-shared=MPM-LIST
Space-separated list of MPM modules to enable for
dynamic loading. MPM-LIST=list | "all"
--enable-unixd unix specific support
--enable-privileges Per-virtualhost Unix UserIDs and enhanced security
for Solaris
--enable-heartbeat Generates Heartbeats
--enable-heartmonitor Collects Heartbeats
--enable-dav WebDAV protocol handling. --enable-dav also enables
mod_dav_fs
--disable-status process/thread monitoring
--disable-autoindex directory listing
--enable-asis as-is filetypes
--enable-info server information
--enable-suexec set uid and gid for spawned processes
--enable-cgid CGI scripts. Enabled by default with threaded MPMs
--enable-cgi CGI scripts. Enabled by default with non-threaded
MPMs
--enable-dav-fs DAV provider for the filesystem. --enable-dav also
enables mod_dav_fs.
--enable-dav-lock DAV provider for generic locking
--enable-vhost-alias mass virtual hosting module
--enable-negotiation content negotiation
--disable-dir directory request handling
--enable-imagemap server-side imagemaps
--enable-actions Action triggering on requests
--enable-speling correct common URL misspellings
--enable-userdir mapping of requests to user-specific directories
--disable-alias mapping of requests to different filesystem parts
--enable-rewrite rule based URL manipulation
--enable-v4-mapped Allow IPv6 sockets to handle IPv4 connections

Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-included-apr Use bundled copies of APR/APR-Util
--with-apr=PATH prefix for installed APR or the full path to
apr-config
--with-apr-util=PATH prefix for installed APU or the full path to
apu-config
--with-pcre=PATH Use external PCRE library
--with-port=PORT Port on which to listen (default is 80)
--with-sslport=SSLPORT Port on which to securelisten (default is 443)
--with-distcache=PATH Distcache installation directory
--with-z=PATH use a specific zlib library
--with-libxml2=PATH location for libxml2
--with-lua=PATH Path to the Lua 5.1/5.2 prefix
--with-ssl=PATH OpenSSL installation directory
--with-mpm=MPM Choose the process model for Apache to use by
default. MPM={event|worker|prefork|winnt} This will
be statically linked as the only available MPM
unless --enable-mpms-shared is also specified.
--with-module=module-type:module-file
Enable module-file in the modules/
directory.
--with-program-name alternate executable name
--with-suexec-bin Path to suexec binary
--with-suexec-caller User allowed to call SuExec
--with-suexec-userdir User subdirectory
--with-suexec-docroot SuExec root directory
--with-suexec-uidmin Minimal allowed UID
--with-suexec-gidmin Minimal allowed GID
--with-suexec-logfile Set the logfile
--with-suexec-safepath Set the safepath
--with-suexec-umask umask for suexec'd process

Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L if you have libraries in a
nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if
you have headers in a nonstandard directory
CPP C preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to the package provider.

官方文档:http://httpd.apache.org/docs/2.4/

Related Posts