linux下安装apache过程
1、在百度搜索apache去官网下载,wget http://apache.fayea.com//httpd/httpd-2.2.34.tar.gz

2、下载完成以后进行解压 tar -zxvf filename.tar.gz

3、 ./configure --prefix=/usr/local/apache2 --enable-module=shared,要加上后面的参数,否则无法使用php,-enable-module=shared表示Apache可以动态的加载模块

4、在编译Apache 会出现apr not found、APR-util not found、pcre-config for libpcre not found的问题,先安装apache安装的依赖组件。我已经安装过依赖组件,不会出现这个错误。

5、make&make install 编译和安装

6、安装完成以后通过浏览器访问http://localhost,安装时候成功。

阅读量:117
阅读量:67
阅读量:37
阅读量:153
阅读量:74