Apache-2.2.31编译安装

环境参数:Linux:Centos6.5,Apache:2.2.31

1.Apache下载:wget http://mirrors.hust.edu.cn/apache//httpd/httpd-2.2.31.tar.gz

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

你可能感兴趣的:(Linux,Apache,linux)