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
  • 相关阅读:
    UML-如何画操作契约?
    UML-操作契约是什么?
    UML-SSD总结
    UML-如何画SSD?
    UML-SSD-为什么要画SSD?
    UML-SSD-定义
    系统幂等性设计
    UML-领域模型-例子与总结
    UML-领域模型-属性
    UML-领域模型-添加关联和属性
  • 原文地址:https://www.cnblogs.com/oscarxie/p/2417522.html
Copyright © 2011-2022 走看看