Linux安装配置apache
1.获取软件: http://httpd.apache.org/ httpd-2.2.21.tar.gz
wget http://apache.fayea.com//httpd/httpd-2.2.31.tar.gz
2.安装步骤:
解压源文件:
1 tar zvxf httpd-2.2.21.tar.gz
2 cd httpd-2.2.21
3 ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite
4 make
5 make install
运行./configure 命令进行编译源代码,
--prefix=/usr/local/apach2 是设置编译安装到的系统目录,
--enable-s 参数是使httpd服务能够动态加载模块功能,
--enable-rewrite 是使httpd服务具有网页地址重写功能。
3.启动apache:
/usr/local/apache2/bin/apachectl start
转自:http://www.cnblogs.com/fly1988happy/archive/2011/12/14/2288064.html