資源描述:
《linux下各種服務進程之http配置實驗》由會員上傳分享,免費在線閱讀,更多相關內容在工程資料-天天文庫。
1、實驗Apache服務配置實驗一、實驗目的:理解Apache工作原理學握Apach配置二、實驗拓撲:CLTLinuxSeiver三、實驗內容及步驟L裝軟件包[root@locdlhostServerJttrpm-iuhapr-1?2?7-11.i386.rpmearning:apr-1.Z.7-11.i386.rpm:HeaderU3DSAsignature:MOKEY,keyID37017186Preparing...[100x11:apr[100X1[roolocalhostServerIttrpm-iuhpostgresq1-libs一8e15_1?1.?i386?rpmwar
2、ning:postgresq1-1ibs-8.1.11-1.e15_1.1.i386.rpm:HeaderU3DSAsignature:NOKEY,keyID37017186Preparing...ttttttunttttltttltttttttttttttttttttttltttltttunttttltttttttttltttttttttltttttlttt[100zJ1:postgr^sql-libs[100X1[rootOlocalhostServer]#rpm-iuhapr-uti1-1.2.7-7.el5.i386.rpmearning:apr-util-l.Z.7-7.
3、el5.i386.rpm:HeaderU3DSAsignature:NOKEY,keyID37017186Preparing???tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt[100zJl:apr-util[100x1[rootPlocalhostServerJ#rpm-iuhhttpd-2.2.3-11.el5_l.3.i386.rpmearning:httpd-Z?Z?3-11.e15_1?3?i386.rpm:HeaderU3DSAsignature
4、:NOKEY,keyID37017186Preparing???ttttttttttttttttttttttttttttttttttttttttttttittttttttttttttttttttttttttttttttttttttttt[100Z]1:httpdttttttunttttitttitttttttttttttttttttttitttitttunttttitttttttttitttttttttitttttittt[100x1[rootOlocalhostServerJttrpm-iuhhttpd-manua1-Z.2.3-11.el5_l.3.i386.rpmLjarni
5、ng:httpd-manua1-Z.2?3-11.el5_1.i386.rpm:HeaderU3DSAsignature:NOKEY,keyID37017186Preparing...[100X1l:httpd-manual[100Z]2.進入http服務配置文件[root@1oca1hostServerJ#cd/etc/httpd/conf[rootO1oca1hostconfJ#vimhttpd.conf_3?打開目錄,并且在htnil文件中寫入內容root(?localhostconfJttcd/var/www/html/「root(?localhosthtmlJttecho
6、°mynameisdaxweiM>index.html「root(?localhosthtmlJttcat.htmlnynameisdaxwei4?重啟服務[root@localhosthtmlservicenetworkrestartShuttingdouninterfaceh0:Shuttingdounloopbackinterface:3ringinguploopbackinterface:BringingupinterfaceEth0:erminingIPinformationfor巳七h0...done.5?用戶通過HTTP服務,輸入服務器地址來查看相應內容localho
7、sthtmlifconflg:th0Linkencap:Ethern巳tHUnddr00:0C:29:F5:58:ACinetaddr:19Z.168.190.128Beast:19Z.168.190.255http://192.168.190.128/一VindovsInternetExplorer邕http://192.168.190.128/文件0)編輯3)查看(V)收藏夾工具(T)幫助⑩:^http://192.168.190.128/mvnameisdaxw