您的位置:首页 > 运维架构 > Apache

Red Hat Enterprise Linux 5安装apache记录

2012-12-07 15:07 507 查看
在我的环境下用到了以下几个:

1)APR 和APR-Util,下载地址http://httpd.apache.org/docs/2.4/install.html

2)Perl-Compatible Regular Expressions Library (PCRE),下载地址:ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/

3)Httpd-2.4.3.tar.gz

步骤:

正常情况下只需要几步:

[root@localhost http-2.4.3]# ./configure --prefix=/usr/local/server/apache

这一步执行完后继续,我在这一步出现了问题,即下面说的

[root@localhost http-2.4.3]# make

[root@localhost http-2.4.3]# make install

我在安装的时候出现了没找不到APR、APR-Util、PCRE的情况,因为我的计算机木有装

下载好这几个组件后,安装方式同上

1、安装APR

[root@localhost http-2.4.3]# ./configure

[root@localhost apr]# make

[root@localhost apr]# make install

2、安装APE-Util

[root@localhost http-2.4.3]# ./configure [--with-apr /usr/local/apr]

这个过程中出现了找不到APR,可以使用--with-apr 你的apr路径 参数

[root@localhost apr]# make

[root@localhost apr]# make install

3、安装PCRE

[root@localhost http-2.4.3]# ./configure

[root@localhost apr]# make

[root@localhost apr]# make install

再重新执行

[root@localhost http-2.4.3]# ./configure --prefix=/usr/local/server/apache

[root@localhost http-2.4.3]# make

[root@localhost http-2.4.3]# make install

安装成功。

用VI查看httpd.conf文件看看,ok

测试一下:

[root@localhost bin]# ./apachectl start

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: