日期:2014-05-17  浏览次数:20687 次

liunx 安装 apache

1.下载httpd-2.2.17.tar.gz

2.下载apr-1.3.12.tar.gz

3.下载apr-util-1.3.10.tar.gz

4.解压apr? tar zxvf apr-1.3.12.tar.gz 并且 cd? apr-1.3.12

5../configure --prefix=/usr/local/apr
6.make & make install

7.解压apr-util-1.3.10.tar.gz ? apr-1.3.12.tar.gz? 并且 cd? apr-util-1.3.10

8./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/

9.make & make install

10.解压httpd-2.2.17.tar.gz? tar zxvf httpd-2.2.17.tar.gz 并且 cd httpd-2.2.17

11../configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-rewrite --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-included-apr

12.make & make install

?

完成。进入 apache2 /bin中? 运行? ./apachectl start

?

http://localhost 如果看到it work 说明安装完毕