软件包:
httpd-2.2.6.tar.gz
软件包说明: 这个版本是未编译好的压缩包,解压后要做编译
---------------------------------------------------------------------------------------------------
1.解压缩
# cd /usr/local/src
# tar -zvxf httpd-2.2.6.tar.gz
# cd httpd-2.2.6
2.创建安装目录
# mkdir -p /usr/local/apache2
# ./configure --prefix=/usr/local/apache2 --enable-modules=so --enable-rewrite
# make
# make install
3.启动和关闭apache
# /usr/local/apache2/bin/apachectl -k start // 启动 apahce
用浏览器查看 http://localhost, 得到 it works ,说明 apache 已经配置成功了 .
# /usr/local/apache2/bin/apachectl -k stop // 停止 apache