Redhat Enterprise Linux 5下apache部署及简单的配置过程

xuexi 2010-05-06

RedHat enterprise linux 5下apache部署及简单的配置过程
实验环境 VMware 6.5.2 + redhat enterprise linux 5
及此前做完的DNS服务
【实验开始 】
Redhat Enterprise Linux 5下apache部署及简单的配置过程
我的内核版本
windows系统发布一个建易得网页可以选择IIS ,安装并不困难,linux下则可以选择apache ,
www服务遵循http协议,使用http超文本标记语言故
apache的 守护进程名 httpd
apache的默认端口 80
相关文件 /etc/httpd/
/etc/httpd/conf/httpd.conf 配置文件
挂镜像 安装apache 所需的rpm包
cd /m[root@localhost ~]# cd /mnt/cdrom
[root@localhost cdrom]# cd Server
[root@localhost Server]# rpm -ivh httpd-
httpd-2.2.3-11.el5.i386.rpm httpd-manual-2.2.3-11.el5.i386.rpm
httpd-devel-2.2.3-11.el5.i386.rpm
[root@localhost Server]# rpm -ivh httpd-2.2.3-11.el5.i386.rpm
warning: httpd-2.2.3-11.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
package httpd-2.2.3-11.el5 is already installed
[root@localhost Server]#
此包已经装过
[root@localhost Server]# rpm -ivh httpd-devel-2.2.3-11.el5.i386.rpm
warning: httpd-devel-2.2.3-11.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
apr-devel is needed by httpd-devel-2.2.3-11.el5.i386
apr-util-devel is needed by httpd-devel-2.2.3-11.el5.i386
[root@localhost Server]# rpm -ivh apr-devel-1.2.7-11.i386.rpm
warning: apr-devel-1.2.7-11.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:apr-devel ########################################### [100%]
[root@localhost Server]#
[root@localhost Server]# rpm -ivh apr-util-devel-1.2.7-6.i386.rpm
warning: apr-util-devel-1.2.7-6.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:apr-util-devel ########################################### [100%]
[root@localhost Server]#
注意依赖关系
[root@localhost Server]# rpm -ivh httpd-manual-2.2.3-11.el5.i386.rpm
warning: httpd-manual-2.2.3-11.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
package httpd-manual-2.2.3-11.el5 is already installed
[root@localhost Server]#
安装完毕
[root@localhost Server]#vi /etc/httpd/conf/httpd.conf
apache的配置文件很长 是要有点耐心的

相关推荐

DelphiTeacher / 0评论 2016-05-21