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

rhel 5.5 中安装 apache2.2.22

声明:本文参考文章 http://zhumeng8337797.blog.163.com/blog/static/100768914201051121835414/

?

rhel 5.5 中安装 apache2.2.22 步骤:

1. 到 http://httpd.apache.org/download.cgi?网站上下载 需要安装的版本,本文安装的是 httpd-2.2.22.tar.gz 这个版本。

2. 下载好后,放在 /usr/software 目录下(这个目录任意)

3. 进入 /usr/software?? , 解压下载下载的安装包 ( tar -zxvf httpd-2.2.14.tar.gz )。

4. 进入解压后的目录 , /usr/software/httpd-2.2.22 , 执行? ./configure --prefix=/usr/local/apache --enable-module=so

5. 执行命令 make && make install

6. 启动apache , /usr/local/apache/bin/apachectl start

7.检测 80端口是否起来监听,netstat -tnl

8. 如果正常起来了,用浏览器验证一下 , http://localhost?,如果浏览器里显示 "It Works! " , 说明安装成功。

?

?

?