[RHEL5企业级Linux服务攻略]--第7季 Apache服务全攻略之常规配置.docx

上传人:小飞机 文档编号:2013438 上传时间:2022-12-31 格式:DOCX 页数:8 大小:724.95KB
返回 下载 相关 举报
[RHEL5企业级Linux服务攻略]--第7季 Apache服务全攻略之常规配置.docx_第1页
第1页 / 共8页
[RHEL5企业级Linux服务攻略]--第7季 Apache服务全攻略之常规配置.docx_第2页
第2页 / 共8页
[RHEL5企业级Linux服务攻略]--第7季 Apache服务全攻略之常规配置.docx_第3页
第3页 / 共8页
[RHEL5企业级Linux服务攻略]--第7季 Apache服务全攻略之常规配置.docx_第4页
第4页 / 共8页
[RHEL5企业级Linux服务攻略]--第7季 Apache服务全攻略之常规配置.docx_第5页
第5页 / 共8页
点击查看更多>>
资源描述

《[RHEL5企业级Linux服务攻略]--第7季 Apache服务全攻略之常规配置.docx》由会员分享,可在线阅读,更多相关《[RHEL5企业级Linux服务攻略]--第7季 Apache服务全攻略之常规配置.docx(8页珍藏版)》请在三一办公上搜索。

1、1.Apache相关软件httpd-2.2.3-11.el5.i386.rpm :Apache服务的主程序包,服务器端必须安装该软件包httpd-devel-2.2.3-11.el5.i386.rpm :Apache开发程序包 httpd-manual-2.2.3-11.el5.i386.rpm :Apache手册文档,包含HTML 格式的Apache 计划的Apache Users Guide 说明指南 system-config-httpd-1.3.3.1-1.el5.noarch.rpm :Apache配置工具2、Apache软件包安装httpd-devel-2.2.3-11.el5.i

2、386.rpm包要解决以下两个依赖关系:apr-devel-1.2.7-11.i386.rpm apr-util-devel-1.2.7-6.i386.rpmsystem-config-httpd-1.3.3.1-1.el5.noarch.rpm包要解决以下两个依赖关系:alchemist-1.0.36-2.el5.i386.rpm libxslt-python-1.1.17-2.i386.rpmrootrhel5 # ll /mnt/cdrom/Server/ |grep httpd -r-xr-xr-x 1 root root 1111795 2007-08-27 httpd-2.2.3-

3、11.el5.i386.rpm -r-xr-xr-x 1 root root 149662 2007-08-27 httpd-devel-2.2.3-11.el5.i386.rpm -r-xr-xr-x 1 root root 851004 2007-08-27 httpd-manual-2.2.3-11.el5.i386.rpm -r-xr-xr-x 1 root root 612538 2007-01-18 system-config-httpd-1.3.3.1-1.el5.noarch.rpm rootrhel5 # rpm -qa |grep httpd rootrhel5 # rpm

4、 -ivh /mnt/cdrom/Server/httpd-2.2.3-11.el5.i386.rpm warning: /mnt/cdrom/Server/httpd-2.2.3-11.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 Preparing. # 100% 1:httpd # 100% rootrhel5 # rpm -ivh /mnt/cdrom/Server/httpd-devel-2.2.3-11.el5.i386.rpm warning: /mnt/cdrom/Server/httpd-devel

5、-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 rootrhel5 # rpm -ivh /mnt/cdrom/Server/apr-devel-1.2.7-11.i386.rpm warning: /mnt/cdrom/Se

6、rver/apr-devel-1.2.7-11.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 Preparing. # 100% 1:apr-devel # 100% rootrhel5 # rpm -ivh /mnt/cdrom/Server/apr-util-devel-1.2.7-6.i386.rpm warning: /mnt/cdrom/Server/apr-util-devel-1.2.7-6.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 Pr

7、eparing. # 100% 1:apr-util-devel # 100% rootrhel5 # rpm -ivh /mnt/cdrom/Server/httpd-devel-2.2.3-11.el5.i386.rpm warning: /mnt/cdrom/Server/httpd-devel-2.2.3-11.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 Preparing. # 100% 1:httpd-devel # 100% rootrhel5 # rpm -ivh /mnt/cdrom/Server

8、/httpd-manual-2.2.3-11.el5.i386.rpm warning: /mnt/cdrom/Server/httpd-manual-2.2.3-11.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 Preparing. # 100% 1:httpd-manual # 100% rootrhel5 # rpm -ivh /mnt/cdrom/Server/system-config-httpd-1.3.3.1-1.el5.noarch.rpm warning: /mnt/cdrom/Server/sy

9、stem-config-httpd-1.3.3.1-1.el5.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 error: Failed dependencies: alchemist is needed by system-config-httpd-1.3.3.1-1.el5.noarch libxslt-python is needed by system-config-httpd-1.3.3.1-1.el5.noarch rootrhel5 # rpm -ivh /mnt/cdrom/Server/alchemis

10、t- alchemist-1.0.36-2.el5.i386.rpm alchemist-devel-1.0.36-2.el5.i386.rpm rootrhel5 # rpm -ivh /mnt/cdrom/Server/alchemist-1.0.36-2.el5.i386.rpm warning: /mnt/cdrom/Server/alchemist-1.0.36-2.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 Preparing. # 100% 1:alchemist # 100% rootrhel5 #

11、 rpm -ivh /mnt/cdrom/Server/libxslt-python-1.1.17-2.i386.rpm warning: /mnt/cdrom/Server/libxslt-python-1.1.17-2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 Preparing. # 100% 1:libxslt-python # 100% rootrhel5 # rpm -ivh /mnt/cdrom/Server/system-config-httpd-1.3.3.1-1.el5.noarch.rpm warn

12、ing: /mnt/cdrom/Server/system-config-httpd-1.3.3.1-1.el5.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 Preparing. # 100% 1:system-config-httpd # 100% rootrhel5 # 3、WEB常规应用配置案例:部门内部搭建一台WEB服务器,采用的IP地址和端口为192.168.0.188:80,首页采用index.html文件。管理员E-mail地址为root,网页的编码类型采用GB2312,所有网站资源都存放在/var/ww

13、w/html目录下,并将Apache的根目录设置为/etc/httpd目录。解决方案:(1)修改主配置文件httpd.confvim /etc/httpd/conf/httpd.conf 设置Apache的根目录为/etc/httpd设置客户端访问超时时间为120秒这两个设置为系统默认哈设置httpd监听端口80,默认哈设置管理员E-mail地址为root设置WEB服务器的主机名和监听端口为192.168.1.188:80设置Apache文档目录为/var/www/html,默认哈设置主页文件为index.html设置服务器的默认编码为GB2312(2)注释掉Apache默认欢迎页面vim /etc/httpd/conf.d/welcome.conf 将welcome.conf中的四行代码注释掉哈注意:如果不注释掉,那么在我们测试自己的网站时则会打开RedHat Enterprise Linux Test Page页面,而不是我们自己的网页哈 (3)重新启动httpd服务(4)将制作好的网页存放在文档目录/var/www/html中(5)测试在IE地址栏中输入192.168.0.188就可以打开我们制作好的首页,偶借用了下McAfee的首页试试效果,呵呵

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 生活休闲 > 在线阅读


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号