2008-09-26 43 views

回答

10

尝试-V其中“打印httpd的版本和生成参数,然后退出”。

httpd -V 

此外,您可以通过查看httpd的选项:

httpd -h 
+8

的httpd -V optput看起来一点都不像的./configure选项。 – stepancheg 2011-08-29 17:12:13

0

我重新编译的Apache 2.4.3最近和工人改变MPM到prefork的,你必须做,如果你有什么仍然保持原来的编译目录没有运行“make distclean”(如果你运行“make clean”,它仍然可以)。您可以使用SAME configure选项通过exec ./config.status重新配置,或者您可以从./config.status中找到并复制'./configure'(是的,您用来运行configure的所有原始选项仍然存在)。

这里是我的config.status的一部分......

if $ac_cs_silent; then 
    exec 6>/dev/null 
    ac_configure_extra_args="$ac_configure_extra_args --silent" 
fi 

if $ac_cs_recheck; then 
    set X /bin/sh **'./configure' '--enable-file-cache' '--enable-cache' '--enable-disk-cache' '--enable-mem-cache' '--enable-deflate' '--enable-expires' '--enable-headers' '--enable-usertrack' '--enable-cgi' '--enable-vhost-alias' '--enable-rewrite' '--enable-so' '--with-apr=/usr/local/apache/' '--with-apr-util=/usr/local/apache/' '--prefix=/usr/local/apache' '--with-mpm=worker' '--with-mysql=/var/lib/mysql' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--enable-mods-shared=most' '--enable-ssl' 'CFLAGS=-Wall -O3 -ffast-math -frename-registers -mtune=corei7-avx' '--enable-modules=all' '--enable-proxy' '--enable-proxy-fcgi'** $ac_configure_extra_args --no-create --no-recursion 
    shift 
    $as_echo "running CONFIG_SHELL=/bin/sh $*" >&6 
    CONFIG_SHELL='/bin/sh' 
    export CONFIG_SHELL 
    exec "[email protected]" 
fi 
4

我发现在Apache的根的构建目录之前的配置选项。

我是Centos 5/6用户。

Apache ver。是2.2.27。

apachedir /编译/的config.nice

#! /bin/sh 
# 
# Created by configure 

"./configure" \ 
"--prefix=/usr/local/apache2" \ 
"--enable-so" \ 
"--enable-mods-shared=most" \ 
"--enable-ssl" \ 
"--with-mpm=worker" \ 
"--enable-cgi" \ 
"[email protected]"