[LAMP]Apache-2.2.31編譯安裝

梓沐發表於2016-02-15
環境引數:Linux:Centos6.5,Apache:2.2.31

1.Apache下載:wget

2.安裝必要軟體
yum install zlib zlib-devel -y

3.解壓軟體
tar xf httpd-2.2.31.tar.gz
cd httpd-2.2.31

4.編譯軟體
./configure \
--prefix=/application/apache2.2.31 \
--enable-deflate \
--enable-expires \
--enable-headers \
--enable-modules=most \
--enable-so \
--with-mpm=worker \
--enable-rewrite

5.安裝軟體
make && make install

6.做軟連線
ln -s /application/apache2.2.31/ /application/apache

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29812844/viewspace-1988851/,如需轉載,請註明出處,否則將追究法律責任。

相關文章