1.解压httpd-2.2.22.tar.gz
#tar –zxvf httpd-2.2.22.tar.gz
2.进入httpd-2.2.22目录
#cd httpd-2.2.22
3.运行./configure命令进行编译源代码
#./configure --prefix=/usr/apache/Apache2.2 --enable-so --enable-rewrite
--prefix=/usr/apache/Apache2.2: 设置编译安装到的目录
--enable-so: 设置httpd服务能够动态加载模块功能
--enable-rewrite: 设置httpd服务具有网页地址重写功能
4.编译
#make
5.安装
#make install
注:
启动apache
#/usr/apache/Apache2.2/bin/apachectl start
关闭apache
#/usr/apache/Apache2.2/bin/apachectl stop
#tar –zxvf httpd-2.2.22.tar.gz
2.进入httpd-2.2.22目录
#cd httpd-2.2.22
3.运行./configure命令进行编译源代码
#./configure --prefix=/usr/apache/Apache2.2 --enable-so --enable-rewrite
--prefix=/usr/apache/Apache2.2: 设置编译安装到的目录
--enable-so: 设置httpd服务能够动态加载模块功能
--enable-rewrite: 设置httpd服务具有网页地址重写功能
4.编译
#make
5.安装
#make install
注:
启动apache
#/usr/apache/Apache2.2/bin/apachectl start
关闭apache
#/usr/apache/Apache2.2/bin/apachectl stop