[RHEL5企业级Linux服务攻略]--第7季 Apache服务全攻略之常规配置171.docx
-
资源ID:68838295
资源大小:744.75KB
全文页数:10页
- 资源格式: DOCX
下载积分:10金币
快捷下载
会员登录下载
微信登录下载
三方登录下载:
微信扫一扫登录
友情提示
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
|
[RHEL5企业级Linux服务攻略]--第7季 Apache服务全攻略之常规配置171.docx
1.Appachhe相关关软件httppd-22.2.3-111.eel5.i3886.rrpm :Appachhe服务务的主程程序包,服服务器端端必须安安装该软软件包httppd-ddeveel-22.2.3-111.eel5.i3886.rrpm :Appachhe开发发程序包包 htttpdd-maanuaal-22.2.3-111.eel5.i3886.rrpm :Appachhe手册册文档,包包含HTTML 格式的的Apaachee 计划划的Appachhe UUserr's Guiide 说明指指南 ssysttem-connfigg-htttpdd-1.3.33.1-1.eel5.noaarchh.rppm :Apaachee配置工工具2、Appachhe软件件包安装装httppd-ddeveel-22.2.3-111.eel5.i3886.rrpm包包要解决决以下两两个依赖赖关系:apr-devvel-1.22.7-11.i3886.rrpmaapr-utiil-ddeveel-11.2.7-66.i3386.rpmmsysttem-connfigg-htttpdd-1.3.33.1-1.eel5.noaarchh.rppm包要要解决以以下两个个依赖关关系:alchhemiist-1.00.366-2.el55.i3386.rpmmlibbxsllt-ppythhon-1.11.177-2.i3886.rrpm roootrrhell5 # ll /mnnt/ccdroom/SServver/ |ggrepp htttpdd -rr-xrr-xrr-x 1 rroott rooot 111117795 20007-008-227 hhttppd-22.2.3-111.eel5.i3886.rrpm -r-xr-xr-x 11 rooot rooot 14496662 220077-088-277 htttpdd-deevell-2.2.33-111.ell5.ii3866.rppm -r-xxr-xxr-xx 1 rooot rroott 85110044 20007-08-27 htttpd-mannuall-2.2.33-111.ell5.ii3866.rppm -r-xxr-xxr-xx 1 rooot rroott 61225388 20007-01-18 sysstemm-coonfiig-hhttppd-11.3.3.11-1.el55.nooarcch.rrpm roootrheel5 # rppm -qa |grrep htttpd roootrheel5 # rppm -ivhh /mmnt/cdrrom/Serrverr/htttpdd-2.2.33-111.ell5.ii3866.rppm warrninng: /mnnt/ccdroom/SServver/htttpd-2.22.3-11.el55.i3386.rpmm: HHeadder V3 DSAA siignaaturre: NOKKEY, keey IID 33701171886 PPreppariing. # 1000% 1:hhttppd # 1000% rroottrhhel55 # rrpm -ivvh /mntt/cddromm/Seerveer/hhttppd-ddeveel-22.2.3-111.eel5.i3886.rrpm warrninng: /mnnt/ccdroom/SServver/htttpd-devvel-2.22.3-11.el55.i3386.rpmm: HHeadder V3 DSAA siignaaturre: NOKKEY, keey IID 33701171886 eerroor: Faiiledd deepenndennciees: aapr-devvel is neeededd byy htttpdd-deevell-2.2.33-111.ell5.ii3866 aprr-uttil-devvel is neeededd byy htttpdd-deevell-2.2.33-111.ell5.ii3866 rroottrhhel55 # rrpm -ivvh /mntt/cddromm/Seerveer/aapr-devvel-1.22.7-11.i3886.rrpm warrninng: /mnnt/ccdroom/SServver/aprr-deevell-1.2.77-111.i3386.rpmm: HHeadder V3 DSAA siignaaturre: NOKKEY, keey IID 33701171886 PPreppariing. # 1000% 1:aapr-devvel # 1000% rroottrhhel55 # rrpm -ivvh /mntt/cddromm/Seerveer/aapr-utiil-ddeveel-11.2.7-66.i3386.rpmm warrninng: /mnnt/ccdroom/SServver/aprr-uttil-devvel-1.22.7-6.ii3866.rppm: Heaaderr V33 DSSA ssignnatuure: NOOKEYY, kkey ID 3700171186 Preeparringg. # 1000% 1:aprr-uttil-devvel # 1100% roootrrhell5 # rpmm -iivh /mnnt/ccdroom/SServver/htttpd-devvel-2.22.3-11.el55.i3386.rpmm warrninng: /mnnt/ccdroom/SServver/htttpd-devvel-2.22.3-11.el55.i3386.rpmm: HHeadder V3 DSAA siignaaturre: NOKKEY, keey IID 33701171886 PPreppariing. # 1000% 1:hhttppd-ddeveel # 1000% rroottrhhel55 # rrpm -ivvh /mntt/cddromm/Seerveer/hhttppd-mmanuual-2.22.3-11.el55.i3386.rpmm warrninng: /mnnt/ccdroom/SServver/htttpd-mannuall-2.2.33-111.ell5.ii3866.rppm: Heaaderr V33 DSSA ssignnatuure: NOOKEYY, kkey ID 3700171186 Preeparringg. # 1000% 1:htttpd-mannuall # 1100% roootrrhell5 # rpmm -iivh /mnnt/ccdroom/SServver/sysstemm-coonfiig-hhttppd-11.3.3.11-1.el55.nooarcch.rrpm warrninng: /mnnt/ccdroom/SServver/sysstemm-coonfiig-hhttppd-11.3.3.11-1.el55.nooarcch.rrpm: Heeadeer VV3 DDSA siggnatturee: NNOKEEY, keyy IDD 37701771866 errrorr: FFailled deppenddencciess: allcheemisst iis nneedded by sysstemm-coonfiig-hhttppd-11.3.3.11-1.el55.nooarcch liibxsslt-pytthonn iss neeedeed bby ssysttem-connfigg-htttpdd-1.3.33.1-1.eel5.noaarchh rroottrhhel55 # rrpm -ivvh /mntt/cddromm/Seerveer/aalchhemiist- allcheemisst-11.0.36-2.eel5.i3886.rrpm allcheemisst-ddeveel-11.0.36-2.eel5.i3886.rrpm roootrheel5 # rppm -ivhh /mmnt/cdrrom/Serrverr/allcheemisst-11.0.36-2.eel5.i3886.rrpm warrninng: /mnnt/ccdroom/SServver/alcchemmistt-1.0.336-22.ell5.ii3866.rppm: Heaaderr V33 DSSA ssignnatuure: NOOKEYY, kkey ID 3700171186 Preeparringg. # 1000% 1:alcchemmistt # 1100% roootrrhell5 # rpmm -iivh /mnnt/ccdroom/SServver/libbxsllt-ppythhon-1.11.177-2.i3886.rrpm warrninng: /mnnt/ccdroom/SServver/libbxsllt-ppythhon-1.11.177-2.i3886.rrpm: Heeadeer VV3 DDSA siggnatturee: NNOKEEY, keyy IDD 37701771866 Prrepaarinng. # 1100% 11:liibxsslt-pytthonn # 1000% roootrheel5 # rppm -ivhh /mmnt/cdrrom/Serrverr/syysteem-cconffig-htttpd-1.33.3.1-11.ell5.nnoarrch.rpmm waarniing: /mmnt/cdrrom/Serrverr/syysteem-cconffig-htttpd-1.33.3.1-11.ell5.nnoarrch.rpmm: HHeadder V3 DSAA siignaaturre: NOKKEY, keey IID 33701171886 PPreppariing. # 1000% 1:ssysttem-connfigg-htttpdd # 1000% rroottrhhel55 # 3、WEEB常规规应用配配置案例:部门内部部搭建一一台WEEB服务务器,采采用的IIP地址址和端口口为1992.1168.0.1188:80,首首页采用用inddex.htmml文件件。管理理员E-maiil地址址为roootmicchaeel.ccom,网网页的编编码类型型采用GGB23312,所所有网站站资源都都存放在在/vaar/wwww/htmml目录录下,并并将Appachhe的根根目录设设置为/etcc/htttpdd目录。解决方案案:(1)修修改主配配置文件件htttpd.connfvim /ettc/hhttppd/cconff/htttpdd.coonf设置Appachhe的根根目录为为/ettc/hhttppd设置客户户端访问问超时时时间为1120秒秒这两个设设置为系系统默认认哈设置htttpdd监听端端口800,默认认哈设置管理理员E-maiil地址址为roootmicchaeel.ccom设置WEEB服务务器的主主机名和和监听端端口为1192.1688.1.1888:800设置Appachhe文档档目录为为/vaar/wwww/htmml,默默认哈设置主页页文件为为inddex.htmml设置服务务器的默默认编码码为GBB23112(2)注注释掉AApacche默默认欢迎迎页面vim /ettc/hhttppd/cconff.d/wellcomme.cconff 将wellcomme.cconff中的四四行代码码注释掉掉哈注意:如如果不注注释掉,那那么在我我们测试试自己的的网站时时则会打打开ReedHaat EEnteerprrisee Liinuxx Teest Pagge页面面,而不不是我们们自己的的网页哈哈 (3)重重新启动动htttpd服服务(4)将将制作好好的网页页存放在在文档目目录/vvar/wwww/httml中中(5)测测试在IE地地址栏中中输入1192.1688.0.1888就可以以打开我我们制作作好的首首页,偶偶借用了了下MccAfeee的首首页试试试效果,呵呵呵