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
  • 相关阅读:
    如何在Odoo创建新数据的时候添加自己的方法
    如何在odoo中实现隐藏原有菜单meum(3行代码实现)
    博客皮肤
    通过备份 Etcd 来完美恢复 Kubernetes 中的误删数据
    修改kubernetes-dashboard默认token认证时间
    Docker就该这么学--第一个dockerfile镜像文件
    nginx优化之网络服务模型
    nginx优化之nginx的进程与线程
    php的加载方式和设计模式
    nginx优化之nginx的配置文件详解
  • 原文地址:https://www.cnblogs.com/oscarxie/p/2417522.html
Copyright © 2011-2022 走看看