Installing Apache under CentOS6.5
1. Enter the/USR/LOCAL/SRC directory
[[Email protected] ~] #cd/usr/local/src/
[[email protected] src] #wget http://mirrors.cnnic.cn/apache/httpd/httpd-2.2.31.tar.gz
2. Decompression
[Email protected] src]# tar zxvf httpd-2.2.31.tar.gz
3. Compilation parameters
[Email protected] src]# CD httpd-2.2.31
[email protected] httpd-2.2.31]# Yum install-y zlib-devel #先提前安装好一些库文件
[Email protected] httpd-2.2.31]#/configure \
>--prefix=/usr/local/apache2 \
>--WITH-INCLUDED-APR \
>--enable-so \
>--enable-deflate=shared \
>--enable-expires=shared \
>--enable-rewrite=shared \
>--with-pcre
# # to explain:--prefix is specified where to install;--enable-so means enable dso;--enable-deflate=
Shared means that the deflate is compiled in the same way, and the following parameters are the same.
4. Compiling
[[email protected] httpd-2.2.31] #make
5. Installation
[[email protected] httpd-2.2.31] #make Install
6. Complete Installation
[[email protected] httpd-2.2.31]# echo $?
0
This article is from the "10694514" blog, please be sure to keep this source http://10704514.blog.51cto.com/10694514/1711624
Installing Apache under Linux