zoukankan      html  css  js  c++  java
  • 64位Apache

    Apache官网没有找到64位的,http://httpd.apache.org/download.cgi

    网上找到个办法,贴过来:

    Linux下Apache安装64位问题
    网上说之一:
    1、删除安装目录下的configure文件,在我的环境中是httpd-2.2.6/configure
    2、删除“httpd-2.26/srclib/apr-util/configure”
    3、通过以下命令重建编译文件(以下命令在http-2.26/目录下运行)。
    #./buildconf
    4. 、通过以上重建编译文件,现在可以拥有64位的apr-util了,最后在编辑时加上以上参数:
    –enable-lib64
    以下是我编译的例子:
    [root@yangjf packages]# ./configure --prefix=/usr/local/apache --enable-mods-shared=all --enable-so –enable-ssl –enable-lib64 -libdir=/usr/lib64
    [root@yangjf packages]#make
    [root@yangjf packages]#make install
    网上说之二:
    解决方法:编译时增加编译参数 --with-expat=builtin 。貌似在64位服务器下编译脚本在定位系统 expat 支持时有些问题。使用自带的expat来编译就不存在这个问题了。举例如下:

    # ./configure --prefix=/usr/local/apache2 --enable-modules=so --enable-rewrite --with-expat=builtin 

    我自己试了第二种,是可用的。 

    $ ./configure --prefix=[APACHEINSTALLDIR] \
    --with-mpm=worker \
    --enable-mods-shared=all \
    --enable-so \
    --enable-rewrite=static \
    --enable-headers=static \
    --enable-expires=static \
    --enable-log-config=static \
    --enable-nonportable-atomics=yes \

    --with-expat=builtin 


    补一下,32位机器装32位Apache

    $ ./configure --prefix=[APACHEINSTALLDIR] \
    --with-mpm=worker \
    --enable-mods-shared=all \
    --enable-so \
    --enable-rewrite=static \
    --enable-headers=static \
    --enable-expires=static \
    --enable-log-config=static \
    --enable-nonportable-atomics=yes


    64位机器装32位Apache

    $ ./configure --prefix=[APACHEINSTALLDIR] \
    LDFLAGS=-L/lib32 \
    CPPFLAGS=-m32 \
    CFLAGS=-m32 \
    --with-mpm=worker \
    --enable-mods-shared=all \
    --enable-so \
    --enable-rewrite=static \
    --enable-headers=static \
    --enable-expires=static \
    --enable-log-config=static \
    --enable-nonportable-atomics=yes \
    --disable-deflate
  • 相关阅读:
    [luogu4799 CEOI2015 Day2] 世界冰球锦标赛(折半搜索)
    [luogu3230 HNOI2013] 比赛 (搜索+Hash)
    [luogu2317 HNOI2005] 星际贸易 (dp)
    [luogu2414 NOI2011]阿狸的打字机 (AC自动机)
    [bzoj3507 Cqoi2014]通配符匹配 (hash+DP)
    [luogu2054 AHOI2005] 洗牌 (数论)
    bzoj1491 [NOI2007]社交网络
    bzoj1022 [SHOI2008]小约翰的游戏John
    bzoj1088 [SCOI2005]扫雷Mine
    bzoj1295 [SCOI2009]最长距离
  • 原文地址:https://www.cnblogs.com/oscarxie/p/2417522.html
Copyright © 2011-2022 走看看