http 24編譯安裝

來源:互聯網
上載者:User

標籤:httpd

一、去鏡像網站下載apr   apr-util  和http源碼包

二、 準備開發環境  安裝develoment tools   和development  libraries

三、  解決依賴關係
         yum -y install pcre-devel
四、編譯安裝apr
        tar
        cd
        ./configure --prefix=/usr/local/apr
        make && make install

五、編譯安裝apr-util
         tar
         cd
          ./configure --frefix=/usr/local/apr-util --with-apr=/usr/local/apr
          make && make install

六、編譯httpd
       tar
       cd
       ./configure --prefix=/usr/local/apache --sysconfdir=/etc/httpd24 --enable-so --enable--ssl --enable-cgi --enable-rewrite --with-zlib --with-pcre --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --enable-modeles=most --enable-mpms-shared=all --with-mpm=event
       make && make install


然後匯出標頭檔,庫檔案,協助檔案,修改環境變數


之後修改/etc/init.d/http檔案  將apachectl 路徑  httpd路徑  和pid路徑修改

chkconfig  加入開機啟動

就大功告成了





 httpd2.4新特性
        1)MPM支援在運行時裝載
             --enable-mpms-shared=all --with-mpm=event 啟用預設的event
        2) 支援event
        3)非同步讀寫
        4) 在每模組及每目錄上指定記錄層級
        5)每請求配置:<If> <Elseif>
        6) 增強版的運算式分析器
        7) 毫秒級的keepalive timeout
        8)支援主機名稱的虛擬機器主機不在需要NameVirtualHost指令
        9) 支援使用自訂變數
        新增一些模組:mod_proxy_fcgi,mod_ratelimit,mod_request,mod_remoteip
        對於基於IP的訪問做了修改,不在使用order,allow,deny這些機制;而是統一使用require進行

本文出自 “10633230” 部落格,請務必保留此出處http://10643230.blog.51cto.com/10633230/1882231

http 24編譯安裝

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.