64位Apache

來源:互聯網
上載者:User
Apache官網沒有找到64位的,http://httpd.apache.org/download.cgi

網上找到個辦法,貼過來:

Linux下Apache安裝64位問題網上說之一:1、刪除安裝目錄下的configure檔案,在我的環境中是httpd-2.2.6/configure2、刪除“httpd-2.26/srclib/apr-util/configure”3、通過以下命令重建編譯檔案(以下命令在http-2.26/目錄下運行)。#./buildconf4. 、通過以上重建編譯檔案,現在可以擁有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

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.